protected override void OnElementChanged(ElementChangedEventArgs <Shell> e) { if (_native == null) { _native = new NavigationDrawer(Forms.NativeParent) { NavigationView = new NavigationView(Forms.NativeParent) }; SetNativeView(_native); _native.Toggled += OnFlyoutIsPresentedChanged; InitializeFlyout(); } base.OnElementChanged(e); }
public static double GetFlyoutRatio(this NavigationDrawer drawer, int width, int height) { return(s_navigationDrawerRatio = (width > height) ? 0.4 : 0.83); }