1

私のコードでstacklayoutとgridのためにTapGestureRecognizerを使用しましたが、それをクリックするとSamsung S6 galaxyを除く他のデバイスで正しく動作します。ダブルクリックするとうまく動作します。TapGestureRecognizerがStackLayoutとGridのために1回のクリックで正しく機能しない

コードスニペット:Xamarin Forms- 2.4.0.282バージョンを使用して

<StackLayout Grid.Column="2" Orientation="Vertical" VerticalOptions="Center" WidthRequest="132"> 
<StackLayout.GestureRecognizers> 
<TapGestureRecognizer Tapped="shelfOption_Tapped"/> 
</StackLayout.GestureRecognizers> 
</StackLayout> 

アム。これを解決するために私を助けてくれますか?

よろしく、

チェランあなたの更新のための

答えて

0
<StackLayout Grid.Column="2" Orientation="Vertical" VerticalOptions="**FillAndExpand**" **HorizontalOptions=FillAndExpand** WidthRequest="132"> 
<StackLayout.GestureRecognizers> 
<TapGestureRecognizer Tapped="shelfOption_Tapped"/> 
</StackLayout.GestureRecognizers> 
</StackLayout> 

Make VerticalOptions=FillAndExpand, **HorizontalOptions=FillAndExpand** and try 
+0

感謝。私は試しましたが、動作しませんでした。私は2.5安定版にXamarinフォームを更新し、今TapGestureRecognizerはサムスンギャラクシーS 6と他のデバイスでも正しく動作します。 – cheran

関連する問題