如何解决在布局 Xamarin 内调整时,TapGesture 不会触发
所以基本上,当我尝试在 AbsoluteLayout
内调整我的框架时,我有一件烦人的事情:
<AbsoluteLayout Grid.Column="4">
<Frame CornerRadius="20"
Padding="0"
BorderColor="#9f6b34"
Background="Transparent">
<Frame.GestureRecognizers>
<TapGestureRecognizer Tapped="fourthButton_Clicked"/>
</Frame.GestureRecognizers>
<Label Text="Classic and Traditional"
Padding="35"
FontSize="40"
FontFamily="font2"
HorizontalTextAlignment="Center"
TextColor="#211717">
</Label>
</Frame>
当代码是这样的时候它很好但是当我尝试用 .LayoutBounds
调整框架的位置时它不会点击。我尝试将其更改为 StackLayout
并且单击事件有时会在框架内的各种不同位置触发。我已经放置了 ImageButton
,常规按钮,并尝试使用我的标签的 GestureRecognizer
,但是当我进行调整时它不会点击。
here is a gif of the situtation. the top frame isn't adjusted the bottom one is
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。