Beispiel #1
0
        public override void ViewWillAppear(bool animated)
        {
            base.ViewWillAppear(animated);

            if (this.NavigationController != null)
            {
                _originalBarStyle = this.NavigationController.NavigationBar.BarStyle;
                this.NavigationController.NavigationBar.BarStyle = UIBarStyle.Black;
            }
        }
Beispiel #2
0
        protected override void OnElementChanged(VisualElementChangedEventArgs e)
        {
            base.OnElementChanged(e);


            if (e.OldElement != null)
            {
                e.OldElement.PropertyChanged -= OnElementPropertyChanged;
            }
            if (e.NewElement != null)
            {
                e.NewElement.PropertyChanged += OnElementPropertyChanged;
            }

            _defaultTintColor = TabBar.TintColor;
            _defaultUnselectedItemTintColor = TabBar.UnselectedItemTintColor;
            _defaultBarBackgroundColor      = UIColor.Black;
            _barStyle = UIBarStyle.Default;
        }
 public static UIActionSheetStyle ActionSheetStyleForBarButtonStyle(UIBarStyle barStyle, bool translucent)
 {
     return (UIActionSheetStyle) _ActionSheetStyleForBarButtonStyle((int) barStyle, Convert.ToByte(translucent));
 }
 public static UIActionSheetStyle ActionSheetStyleForBarButtonStyle(UIBarStyle barStyle, bool translucent)
 {
     return((UIActionSheetStyle)_ActionSheetStyleForBarButtonStyle((int)barStyle, Convert.ToByte(translucent)));
 }