Exemple #1
0
        void UpdateFlyoutPageContainers()
        {
            ((FlyoutPage)Element).Flyout.PropertyChanged -= HandleFlyoutPropertyChanged;

            EmptyContainers();

            var flyoutRenderer = ((FlyoutPage)Element).Flyout.ToHandler(MauiContext);
            var detailRenderer = ((FlyoutPage)Element).Detail.ToHandler(MauiContext);

            ((FlyoutPage)Element).Flyout.PropertyChanged += HandleFlyoutPropertyChanged;

            UIView flyoutView = flyoutRenderer.ViewController.View;

            _flyoutController.View.AddSubview(flyoutView);
            _flyoutController.AddChildViewController(flyoutRenderer.ViewController);

            UIView detailView = detailRenderer.ViewController.View;

            _detailController.View.AddSubview(detailView);
            _detailController.AddChildViewController(detailRenderer.ViewController);

            SetNeedsStatusBarAppearanceUpdate();
            if (PlatformVersion.Supports(PlatformApis.RespondsToSetNeedsUpdateOfHomeIndicatorAutoHidden))
            {
                SetNeedsUpdateOfHomeIndicatorAutoHidden();
            }

            if (detailRenderer.ViewController.View.Superview != null)
            {
                detailRenderer.ViewController.View.Superview.BackgroundColor = Microsoft.Maui.Graphics.Colors.Black.ToPlatform();
            }

            ToggleAccessibilityElementsHidden();
        }
Exemple #2
0
        double GetNativeMinimum(SliderHandler sliderHandler)
        {
            if (PlatformVersion.Supports(PlatformApis.SeekBarSetMin))
            {
                return(GetNativeSlider(sliderHandler).Min);
            }

            return(0);
        }
Exemple #3
0
 public override void ViewDidLoad()
 {
     base.ViewDidLoad();
     SetNeedsStatusBarAppearanceUpdate();
     if (PlatformVersion.Supports(PlatformApis.RespondsToSetNeedsUpdateOfHomeIndicatorAutoHidden))
     {
         SetNeedsUpdateOfHomeIndicatorAutoHidden();
     }
 }