Forum Xamarin.Forms

[IOS] Bug on IsGestureEnabled of MasterDetailPage

MldsMlds USMember

Hello there,
currently working on an application where the SideMenu is desactivated on certain page, so i use IsGestureEnabled= false, and true when go back.
It works well on Android, but on IOS it never reactivated. IsGestureEnabled = false is Ok, but isGestureEnabled=true did not do anything.

//TODO find a Hack because IsGestureEnabled = true bug on IOS
//HACK desactivated on IOS for now
if (Device.OS != TargetPlatform.iOS)
if (((BaseViewModel)page.BindingContext).IsSideMenuActivated)
((MasterDetailPage)Application.Current.MainPage).IsGestureEnabled = true;
else
((MasterDetailPage)Application.Current.MainPage).IsGestureEnabled = false;

Any idea ?
Thanks !

Posts

  • GiusepeGiusepe BRMember ✭✭

    I'm having the same problem here, did you found a solution?

  • MldsMlds USMember

    Still not resolved and doesn't got ay time since now to look further this bug !
    I will try some workaround tomorrow and tell you if got anything :)

  • ShmooShmoo USMember ✭✭

    I'm having the same issue, but I'm certain it used to work in an older version of Xamarin.Forms... not sure which.

  • MldsMlds USMember

    Still did not found any hack to make it works ...

  • HoaiLeHoaiLe VNMember ✭✭

    i got same problem!! Please help us! Our project stuck because it :(

  • ShmooShmoo USMember ✭✭

    @DH_HA Thank you! Your workaround works perfectly.

  • MldsMlds USMember

    @DH_HA Thank you ! Works perfectly for me also !

  • Thanks, the workaround fixed it for me too.

    Has anybody already created a Bug Report of this?

  • ShmooShmoo USMember ✭✭

    @StefanReinhard.1213 said:
    Has anybody already created a Bug Report of this?

    I filed a bug here: https://bugzilla.xamarin.com/show_bug.cgi?id=37113

  • deckertron9000deckertron9000 USUniversity ✭✭✭

    Out of curiosity, are people also experiencing this issue on iPads or only on iPhones? I only ask because the workaround targets the UIUserInterfaceIdiom.Phone

  • MommMomm USMember ✭✭✭
    edited February 2016

    @deckertron9000 said:
    Out of curiosity, are people also experiencing this issue on iPads or only on iPhones? I only ask because the workaround targets the UIUserInterfaceIdiom.Phone

    It happens for Tablets as well.

  • alekssmykalekssmyk USMember ✭✭✭

    I have faced the same problem, bug is still in release.

  • FranciscoGGFranciscoGG ESMember ✭✭
    edited April 2016

    For me the workaroud is not working...

    EDIT: Sorry, it works fine.

Sign In or Register to comment.