How to disable Swipe in Tabbed Page (Material Design)

CharlinCharlin DOUniversity ✭✭

Hello, i want to disable swipe in Tabbed Page

Answers

  • LushLush USMember ✭✭

    Hi @Charlin,

    Did you find a solution for this?

    Thanks,
    BR // Corneliu

  • CharlinCharlin DOUniversity ✭✭

    @Lush No

  • krishnamvermakrishnamverma USMember ✭✭

    Try custom renderer for tabbed page in android with:

    protected override void OnElementChanged(ElementChangedEventArgs<TabbedPage> e)
    {

        `var info = typeof(TabbedPageRenderer).GetTypeInfo();`
    

    var fieldInfo = info.GetField("_useAnimations", BindingFlags.Instance | BindingFlags.NonPublic);
    fieldInfo.SetValue(this, false);
    base.OnElementChanged(e);
    }

Sign In or Register to comment.