Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public static double GetFlyoutRatio(this NavigationDrawer drawer, int width, int height)
 {
     return(s_navigationDrawerRatio = (width > height) ? 0.4 : 0.83);
 }