How to use Toucheffect in Maui. In xamarin forms we can do it using the xamarin toolkit.

huangapple go评论72阅读模式
英文:

How to use Toucheffect in Maui. In xamarin forms we can do it using the xamarin toolkit.

问题

以下是要翻译的内容:

我尝试过从某人的代码中,这个问题曾经提到过。我按原样实现了它,但原生动画属性不起作用,还有一些其他属性也不起作用。

英文:

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.

huangapple
  • 本文由 发表于 2023年2月8日 14:18:54
  • 转载请务必保留本文链接:https://go.coder-hub.com/75382005.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定