英文:
How to use Toucheffect in Maui. In xamarin forms we can do it using the xamarin toolkit.
问题
以下是要翻译的内容:
- 这是共享的触摸效果文件
- 这是特定于Android平台的代码
- 这是我注册效果和处理程序的地方
- 这是我使用了toucheffect nativeanimation属性的地方
- 一些属性正在工作,例如:PressedOpacityBackgroundColor。有没有办法使原生动画属性工作?
我尝试过从某人的代码中,这个问题曾经提到过。我按原样实现了它,但原生动画属性不起作用,还有一些其他属性也不起作用。
英文:
This is the shared touch effect files
This is the android platforms specific code
This is where I register the effect and the handler
This is where I used toucheffect nativeanimation property
Some properties are working , for example : the PressedOpacityBackgroundColor. Is there a way to make the native animation property to work
I tried from someone's code from where this issue was mentioned. I implemented as it is but the native animation property isn't working and also some other properties as well.
答案1
得分: 1
你可以在MAUI中也使用Toutheffect。
你可以将Xamarin.CommunityToolkit.MauiCompat 2.0.2-preview1013添加到你的项目中。它是Xamarin.CommunityToolkit的.NET MAUI兼容版本。
英文:
You can also use the Toutheffect in the MAUI.
You can add the Xamarin.CommunityToolkit.MauiCompat 2.0.2-preview1013 to your project. It is the .NET MAUI Compatible version of Xamarin.CommunityToolkit.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论