Hello Kelvin,
I have found a solution you can use as a workaround. Here is the approach for passing the gesture to the slideview child elements:
<telerik:RadSlideView x:Name="slideview" AutomationId="slideView" InteractionMode="Pan" > <Grid> <telerik:RadTreeView x:Name="treeView" AutomationId="treeView" ItemsSource="{Binding Items}"> <telerik:TreeViewDescriptor DisplayMemberPath="Name" ItemsSourcePath="Children" TargetType="{x:Type local:Item}" /> </telerik:RadTreeView> </Grid> <Grid> <Button Text="Item 1" HorizontalOptions="Center" VerticalOptions="Center" /> </Grid> <telerik:RadSlideView.Behaviors> <local:SimultaneousTouchBehavior /> </telerik:RadSlideView.Behaviors> </telerik:RadSlideView>
The approach uses a behavior attached to the slideview:
public partial class SimultaneousTouchBehavior : Behavior<RadSlideView> { private RadSlideView? slideView; protected override void OnAttachedTo(RadSlideView bindable) { base.OnAttachedTo(bindable); this.slideView = bindable; this.slideView.HandlerChanged += this.OnHandlerChanged; } protected override void OnDetachingFrom(RadSlideView bindable) { base.OnDetachingFrom(bindable); if (this.slideView != null) { this.slideView.HandlerChanged -= this.OnHandlerChanged; this.slideView = null; } } private void OnHandlerChanged(object? sender, EventArgs e) { #if IOS if (this.slideView?.Handler?.PlatformView is UIKit.UIView platformView) { if(platformView != null) { foreach(var item in platformView.GestureRecognizers) { item.ShouldRecognizeSimultaneously += (item, otherGestureRecognizer) => true; } } } #endif } }
Give this a try and let me know whether it works on your side.
Regards, Didi Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.
The status is still unplanned. I am researching if another workaround could be applied and I will update this message with more details.
Workaround:Use the buttons to navigate through the SlideView when there is a TreeView in the content.
https://docs.telerik.com/devtools/maui/controls/slideview/navigation-buttons