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(); }
double GetNativeMinimum(SliderHandler sliderHandler) { if (PlatformVersion.Supports(PlatformApis.SeekBarSetMin)) { return(GetNativeSlider(sliderHandler).Min); } return(0); }
public override void ViewDidLoad() { base.ViewDidLoad(); SetNeedsStatusBarAppearanceUpdate(); if (PlatformVersion.Supports(PlatformApis.RespondsToSetNeedsUpdateOfHomeIndicatorAutoHidden)) { SetNeedsUpdateOfHomeIndicatorAutoHidden(); } }