xaml - 如何在 Xamarin.Forms 中实现连接动画?

标签 xaml xamarin uwp

在 UWP 中,您可以在页面导航上创建出色的过渡:
enter image description here

https://docs.microsoft.com/en-us/windows/uwp/design/motion/connected-animation

甚至颤振也有类似的东西:
https://flutter.dev/docs/development/ui/animations/hero-animations

我们如何在 Xamarin 上创建这样的东西?

最佳答案

您的意思是否与此类似:

Shared element transitions are animations connecting common elements from one page to another. A shared element transition determines how elements that are present in two pages transition between them. For example, an image that is displayed on both Page A and Page B, transitions from A to B when B becomes visible.



这是这个 [1] xamarin 插件的描述,它也可以在这里找到 [2]。

我在这里找到了[3]。

来源:

[1] https://github.com/GiampaoloGabba/Xamarin.Plugin.SharedTransitions

[2] https://www.nuget.org/packages/Xamarin.Plugin.SharedTransitions/

[3] Transition animation for Android using Xamarin Forms

关于xaml - 如何在 Xamarin.Forms 中实现连接动画?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51419799/

相关文章:

c# - 当 AcceptsReturn 为真时,如何使用 TextBox 处理 Ctrl + Enter?

c# - MVVM-XAML中不同类的访问命令

c# - SelectedItem 和 SelectedValue 返回错误的项目

wpf - 如何为 WPF 应用程序创建 UI 主题

c# - XML 命名空间 'ContentPage' 中的未知类型 'http://xamarin.com/schemas/2014/forms'

c# - 使用 Xamarin 编写跨平台 Unity3D 插件

xamarin - 如何在 Xamarin.Forms 中滚动回到顶部

uwp - Google.Protobuf 是否支持 .NET Core?

c# - 按钮已禁用 - DialogHost 和日历

c# - 如何确定字符串是否是已安装 UWP 应用程序的 AUMID?