internal void SetupBackgroundView(UIView background) { BackgroundView.RemoveFromSuperview(); BackgroundView = background; if (BackgroundView == null) { BackgroundBlurringView.Hidden = true; } else { if (BackgroundBlurringView == null) { if (!IsLessThanIOS6) { BackgroundBlurringView = new UINavigationBar(Bounds); ((UINavigationBar)BackgroundBlurringView).BarStyle = UIBarStyle.Black; } else { BackgroundBlurringView = new UIView(Bounds); BackgroundBlurringView.BackgroundColor = UIColor.FromWhiteAlpha(0.0f, 0.75f); } BackgroundBlurringView.AutoresizingMask = UIViewAutoresizing.FlexibleWidth | UIViewAutoresizing.FlexibleHeight; InsertSubviewBelow(BackgroundBlurringView, ContentView); } BackgroundBlurringView.Hidden = false; BackgroundView.Frame = Bounds; BackgroundView.AutoresizingMask = UIViewAutoresizing.FlexibleWidth | UIViewAutoresizing.FlexibleHeight; InsertSubviewBelow(BackgroundView, BackgroundBlurringView); } }