Can allow swipe gesture to propagate to child?

4 posts, 0 answers
  1. Dev
    Dev avatar
    9 posts
    Member since:
    Apr 2018

    Posted 16 May 2018 Link to this post

    I've got a Calendar in Week view mode nested inside of a SlideView as such:

    <telerikPrimitives:RadSlideView>
        <telerikPrimitives:RadSlideView.ItemsSource>
            <x:Array Type="{x:Type ContentView}">
                <ContentView>
                    <telerikInput:RadCalendar />
                </ContentView>
                <!-- other views -->
            </x:Array>
        </telerikPrimitives:RadSlideView.ItemsSource>
    </telerikPrimitives:RadSlideView>

     

    Is there a way to allow the (horizontal) swipe gesture to propagate to the Calendar when it occurs on the Calendar? As it stands now, no matter where the user swipes the SlideView always handles it, and thus the user cannot swipe left/right to scroll through the Calendar, unless the Calendar is in the view that is in the first/last position inside of the SlideView.

  2. Didi
    Admin
    Didi avatar
    219 posts

    Posted 21 May 2018 Link to this post

    Hi,

    Thank you for the providing XAML, that is used in the project.

    Horizontal swipe gesture is possible in SlideView control when the Calendar occurs.
    Swiping left/right and right/left to scroll through the Calendar can be viewed in the provided video example.
    I prepared for you a sample example how SlideView and Calendar can be used. For the project I used the latest version of Telerik UI for Xamarin.Forms. What is the version of the controls that you are using? 

    I am staying in touch for any further questions I could be of help with.

    Regards,
    Didi
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. Dev
    Dev avatar
    9 posts
    Member since:
    Apr 2018

    Posted 24 May 2018 in reply to Didi Link to this post

    Your sample is for a calendar in Month view mode, whereas I need it to be in Week mode. I've modified your sample to more accurately reflect the situation.

     

    And I am working with the latest version of the controls available as of the time that this was written: 2018.2.516.0

  4. Didi
    Admin
    Didi avatar
    219 posts

    Posted 28 May 2018 Link to this post

    Hi,

    If you need the Calendar to handle the swipe event, the SlideView control has to be customized. You could disable the swiping by setting the IsSwipingEnabled property to false. In this case you can change the view only with the slide buttons. I have attached the project with all changes that need to be done, please download it and give it a try.

    On a side note, I would like to ask you not to upload .zip files in the forums. If you need to send us a project for review, please open a support ticket and attach it there.

    Regards,
    Didi
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top