![]() ![]() In addition, the SetShouldDela圜ontentTouches method can be used to toggle delaying content touches by calling the ShouldDela圜ontentTouches method to return whether content touches are delayed: scrollView.On().SetShouldDela圜ontentTouches(!scrollView.On(). The ScrollView.SetShouldDela圜ontentTouches method, in the .iOSSpecific namespace, is used to control whether a ScrollView handles a touch gesture or passes it to its content. If the scroll view can fit the content size plus the insets then it doesn't scroll or bounce. ![]() The ScrollView.On method specifies that this platform-specific will only run on iOS. view - UITableView - UICollectionView The UITableView can only scroll vertically and the UICollectionView can only scroll horizontally. ScrollView.On().SetShouldDela圜ontentTouches(false) I have a UITableView which displays data and i have a UICollectionView added above the UITableView. It's consumed in XAML by setting the ScrollView.ShouldDela圜ontentTouches attached property to a boolean value: Īlternatively, it can be consumed from C# using the fluent API: using NET Multi-platform App UI (.NET MAUI) platform-specific controls whether a ScrollView handles a touch gesture or passes it to its content. By default, the iOS ScrollView delays content touches, but this can cause problems in some circumstances with the ScrollView content not winning the gesture when it should. An implicit timer is triggered when a touch gesture begins in a ScrollView on iOS and the ScrollView decides, based on the user action within the timer span, whether it should handle the gesture or pass it to its content. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |