private void PrepareBackgroundView() { var blurEffect = UIBlurEffect.FromStyle(UIBlurEffectStyle.Dark); var visualEffect = new UIVisualEffectView(blurEffect); var bluredView = new UIVisualEffectView(blurEffect); bluredView.ContentView.AddSubview(visualEffect); visualEffect.Frame = UIScreen.MainScreen.Bounds; bluredView.Frame = UIScreen.MainScreen.Bounds; View.InsertSubview(bluredView, 0); }
void AddBlurOverlay() { if (UIApplication.SharedApplication?.KeyWindow?.RootViewController?.View != null) { using var blurEffect = UIBlurEffect.FromStyle(UIBlurEffectStyle.Light); _blurWindow = new UIVisualEffectView(blurEffect) { Frame = UIApplication.SharedApplication.KeyWindow.RootViewController.View.Bounds }; UIApplication.SharedApplication.KeyWindow.RootViewController.View.AddSubview(_blurWindow); } }
private void SetupBackground() { RootView.BackgroundColor = _childDialog.BackgroundConfig.Color; if (_childDialog.BackgroundConfig.BlurEnabled) { EffectView.Effect = UIBlurEffect.FromStyle(_childDialog.BackgroundConfig.BlurStyle); } else { EffectView.Effect = null; } }
public override void ViewDidLoad() { base.ViewDidLoad(); if (!UIAccessibility.IsReduceTransparencyEnabled) { TableView.BackgroundColor = UIColor.Clear; var blur = UIBlurEffect.FromStyle(UIBlurEffectStyle.Dark); TableView.BackgroundView = new UIVisualEffectView(blur); } }
public override void OnResignActivation(UIApplication application) { var blurEffect = UIBlurEffect.FromStyle(UIBlurEffectStyle.ExtraDark); var blurEffectView = new UIVisualEffectView(blurEffect) { Frame = application.KeyWindow.Subviews.First().Bounds, AutoresizingMask = UIViewAutoresizing.FlexibleDimensions, Tag = 12 }; application.KeyWindow.Subviews.Last().AddSubview(blurEffectView); base.OnResignActivation(application); }
public void WillDisplayHeaderView(UITableView tableView, UIView headerView, nint section) { if (!(headerView.Subviews[0] is UIVisualEffectView)) { headerView.TintColor = new UIColor(0.95f, 0.95f, 0.95f, 0.9f); var blurEffect = UIBlurEffect.FromStyle(UIBlurEffectStyle.Light); var blurEffectView = new UIVisualEffectView(blurEffect); //always fill the view blurEffectView.Frame = headerView.Bounds; blurEffectView.AutoresizingMask = UIViewAutoresizing.FlexibleWidth | UIViewAutoresizing.FlexibleHeight; headerView.AddSubview(blurEffectView); headerView.InsertSubview(blurEffectView, 0); } }
public void BlurBackground() { InvokeOnMainThread(() => { var blurEffect = UIBlurEffect.FromStyle(UIBlurEffectStyle.Light); var blurEffectView = new UIVisualEffectView(blurEffect) { Frame = Controller.View.Bounds, AutoresizingMask = UIViewAutoresizing.FlexibleWidth | UIViewAutoresizing.FlexibleHeight, Tag = BlurEffectViewTag }; Controller.View.AddSubview(blurEffectView); }); }
public override void OnResignActivation(UIApplication uiApplication) { base.OnResignActivation(uiApplication); using (var blurEffect = UIBlurEffect.FromStyle(UIBlurEffectStyle.Light)) { _blurWindow = new UIVisualEffectView(blurEffect) { Frame = UIApplication.SharedApplication.KeyWindow.RootViewController.View.Bounds }; } UIApplication.SharedApplication.KeyWindow.RootViewController.View.AddSubview(_blurWindow); }
public override void LoadView() { // Create our view controller's view. View = new UIView { TranslatesAutoresizingMaskIntoConstraints = false, // DARK MODE ADOPTION: Changed from .white to a semantic color. BackgroundColor = UIColor.SystemBackgroundColor }; // Add various subviews, from top to bottom: // - Star image (our app's logo) // - Title label // - Background image view // - Visual effect view blurring that background image // - Visual effect view for vibrancy // - Vibrant label var starImageView = ConfigureStarImageView(); View.AddSubview(starImageView); var titleLabel = ConfigureTitleLabel(); View.AddSubview(titleLabel); var backgroundImageView = ConfigureBackgroundImageView(); View.AddSubview(backgroundImageView); // DARK MODE ADOPTION: Changed from style: .light to an iOS 13 // blur style, .systemThinMaterial, that has different appearances in light // and dark modes. var blurEffect = UIBlurEffect.FromStyle(UIBlurEffectStyle.SystemThinMaterial); var blurView = ConfigureBlurView(blurEffect); View.AddSubview(blurView); var vibrancyView = ConfigureVibrancyView(blurEffect); blurView.ContentView.AddSubview(vibrancyView); var vibrantLabel = ConfigureVibrantLabel(); vibrancyView.ContentView.AddSubview(vibrantLabel); // Add constraints to put everything in the right place. SetupConstraints(); }
public void SetAppearance(UITabBarController controller, ShellAppearance appearance) { IShellAppearanceElement el = appearance; var backgroundColor = el.EffectiveTabBarBackgroundColor; var foregroundColor = el.EffectiveTabBarForegroundColor; var titleColor = el.EffectiveTabBarTitleColor; var disabledColor = el.EffectiveTabBarDisabledColor; var unselectedColor = el.EffectiveTabBarUnselectedColor; var tabBar = controller.TabBar; if (_blurView == null) { _defaultBackgroundImage = tabBar.BackgroundImage; _defaultTint = tabBar.TintColor; _defaultUnselectedTint = tabBar.UnselectedItemTintColor; var effect = UIBlurEffect.FromStyle(UIBlurEffectStyle.Regular); _blurView = new UIVisualEffectView(effect); _blurView.Frame = tabBar.Bounds; _colorView = new UIView(_blurView.Frame); } tabBar.BackgroundImage = new UIImage(); tabBar.InsertSubview(_colorView, 0); tabBar.InsertSubview(_blurView, 0); var button = new UIButton(UIButtonType.Custom); button.SetTitle("test", UIControlState.Normal); button.Frame = tabBar.Bounds; button.Center = tabBar.Center; tabBar.InsertSubview(button, 1); if (!backgroundColor.IsDefault) { _colorView.BackgroundColor = backgroundColor.ToUIColor(); } if (!foregroundColor.IsDefault) { tabBar.TintColor = foregroundColor.ToUIColor(); } if (!unselectedColor.IsDefault) { tabBar.UnselectedItemTintColor = unselectedColor.ToUIColor(); } }
private void SetupBlurEffect() { var blurEffect = UIBlurEffect.FromStyle(UIBlurEffectStyle.Dark); //new UIBlurEffect(); _blurEffectView = new UIVisualEffectView(blurEffect) { Frame = this.View.Frame, AutoresizingMask = UIViewAutoresizing.All, Alpha = 0 }; this.VideoPlayerContainerView.AddSubview(_blurEffectView); UIView.Animate(2, 2, UIViewAnimationOptions.TransitionNone, LoginScreenAnimatios, null); }
private void CustomizeBackgroundImage() { BackgroundImageView.Image = RestaurantMO.GetImage(); var blurEffect = UIBlurEffect.FromStyle(UIBlurEffectStyle.Light); var blurEffectView = new UIVisualEffectView(blurEffect); blurEffectView.Frame = View.Bounds; BackgroundImageView.AddSubview(blurEffectView); blurEffectView.TranslatesAutoresizingMaskIntoConstraints = false; blurEffectView.TopAnchor.ConstraintEqualTo(BackgroundImageView.TopAnchor).Active = true; blurEffectView.BottomAnchor.ConstraintEqualTo(BackgroundImageView.BottomAnchor).Active = true; blurEffectView.LeftAnchor.ConstraintEqualTo(BackgroundImageView.LeftAnchor).Active = true; blurEffectView.RightAnchor.ConstraintEqualTo(BackgroundImageView.RightAnchor).Active = true; }
public override void ViewDidLoad() { if (_isDisposed) { return; } if (ShellSection.CurrentItem == null) { throw new InvalidOperationException($"Content not found for active {ShellSection}. Title: {ShellSection.Title}. Route: {ShellSection.Route}."); } base.ViewDidLoad(); _containerArea = new UIView(); if (Forms.IsiOS11OrNewer) { _containerArea.InsetsLayoutMarginsFromSafeArea = false; } View.AddSubview(_containerArea); LoadRenderers(); ShellSection.PropertyChanged += OnShellSectionPropertyChanged; ShellSectionController.ItemsCollectionChanged += OnShellSectionItemsChanged; _blurView = new UIView(); UIVisualEffect blurEffect = UIBlurEffect.FromStyle(UIBlurEffectStyle.ExtraLight); _blurView = new UIVisualEffectView(blurEffect); View.AddSubview(_blurView); UpdateHeaderVisibility(); var tracker = _shellContext.CreatePageRendererTracker(); tracker.IsRootPage = true; tracker.ViewController = this; if (ShellSection.CurrentItem != null) { tracker.Page = ((IShellContentController)ShellSection.CurrentItem).GetOrCreateContent(); } _tracker = tracker; UpdateFlowDirection(); }
private void SetupToolBar() { _instagramAuthTopBar = InstagramAuthTopBar.Create(); var blurEffect = UIBlurEffect.FromStyle(UIBlurEffectStyle.Light); UIVisualEffectView blurView = new UIVisualEffectView(blurEffect); blurView.Frame = new CGRect(_instagramAuthTopBar.Frame.X, _instagramAuthTopBar.Frame.Y, _instagramAuthTopBar.Frame.Width, 63f); _instagramAuthTopBar.BackgroundColor = UIColor.FromRGBA(1, 1, 1, 0f); _instagramAuthTopBar.AddSubview(blurView); _instagramAuthTopBar.SendSubviewToBack(blurView); _instagramAuthTopBar.BtnCancel.Font = UIFont.FromName(_instagramAuthTopBar.BtnCancel.Font.Name, SizeConstants.ScreenMultiplier * 16); _instagramAuthTopBar.BtnCancel.Font = UIFont.FromName(_instagramAuthTopBar.BtnCancel.Font.Name, SizeConstants.ScreenMultiplier * 16); View.AddSubview(_instagramAuthTopBar); }
private void SetCustomTranslucentNavigationBarStyle() { // BAD SOLUTION 1 // The issues about setting it here, on each view, is that the BounceEffect will not work. // But statusbar will look translucent when navigationbar is hidden. if (NavigationController != null && NavigationController.NavigationBar != null) { var blurEffect = UIBlurEffectStyle.Light; _blurView = new UIVisualEffectView(UIBlurEffect.FromStyle(blurEffect)); View.AddSubview(_blurView); var navigationBar = NavigationController.NavigationBar; FullyConstraintTopLayouts(_blurView, navigationBar); View.BringSubviewToFront(_blurView); } }
void Initialize() { _vibrancyView.Frame = this.Bounds; _vibrancyView.AutoresizingMask = UIViewAutoresizing.FlexibleHeight | UIViewAutoresizing.FlexibleWidth; foreach (var view in this.Subviews) { _vibrancyView.ContentView.AddSubview(view); } AddSubview(_vibrancyView); BlurEffect = UIBlurEffect.FromStyle(UIBlurEffectStyle.Light); _vibrancySelectedBackgroundView.Effect = BlurEffect; _defaultSelectedBackgroundView = this.SelectedBackgroundView; }
public override void LoadView() { // Create our view controller's view. View = new UIView { TranslatesAutoresizingMaskIntoConstraints = false, BackgroundColor = UIColor.White }; // Add various subviews, from top to bottom: // - Star image (our app's logo) // - Title label // - Background image view // - Visual effect view blurring that background image // - Visual effect view for vibrancy // - Vibrant label var starImageView = ConfigureStarImageView(); View.AddSubview(starImageView); var titleLabel = ConfigureTitleLabel(); View.AddSubview(titleLabel); var backgroundImageView = ConfigureBackgroundImageView(); View.AddSubview(backgroundImageView); var blurEffect = UIBlurEffect.FromStyle(UIBlurEffectStyle.Light); var blurView = ConfigureBlurView(blurEffect); View.AddSubview(blurView); var vibrancyView = ConfigureVibrancyView(blurEffect); blurView.ContentView.AddSubview(vibrancyView); var vibrantLabel = ConfigureVibrantLabel(); vibrancyView.ContentView.AddSubview(vibrantLabel); // Add constraints to put everything in the right place. SetupConstraints(); }
public DarkBlurView() { if (Device.IsIos8) { var blur = UIBlurEffect.FromStyle(UIBlurEffectStyle.Dark); blurView = new UIVisualEffectView(blur); } else { blurView = new UIToolbar { Opaque = true, Translucent = true, BarStyle = UIBarStyle.BlackTranslucent, }; } Add(blurView); }
public override void OnResignActivation(UIApplication uiApplication) { using (var blurEffect = UIBlurEffect.FromStyle(UIBlurEffectStyle.Regular)) { /* ================================================================================================== * init the blur-effect view * ================================================================================================*/ _blurView = new UIVisualEffectView(blurEffect) { Frame = Window.RootViewController.View.Bounds }; /* ================================================================================================== * adding it into main window * ================================================================================================*/ Window.RootViewController.View.AddSubview(_blurView); } }
public override void DidEnterBackground(UIApplication application) { // Use this method to release shared resources, save user data, invalidate timers and store the application state. // If your application supports background exection this method is called instead of WillTerminate when the user quits. // Blur screen using (var blurEffect = UIBlurEffect.FromStyle(UIBlurEffectStyle.Dark)) { blurView = new UIVisualEffectView(blurEffect); blurView.Frame = Window.RootViewController.View.Bounds; blurView.AddGestureRecognizer(new UITapGestureRecognizer((UITapGestureRecognizer obj) => { obj.View.RemoveFromSuperview(); blurView = null; })); Window.AddSubview(blurView); } }
public async override void ViewDidLoad() { base.ViewDidLoad(); PlayButton.SetBackgroundImage(UIImage.FromFile("images/play.png"), UIControlState.Normal); PlayButton.SetBackgroundImage(UIImage.FromFile("images/play_black.png"), UIControlState.Focused); PreviousButton.SetBackgroundImage(UIImage.FromFile("images/previous.png"), UIControlState.Normal); PreviousButton.SetBackgroundImage(UIImage.FromFile("images/previous_black.png"), UIControlState.Focused); NextButton.SetBackgroundImage(UIImage.FromFile("images/next.png"), UIControlState.Normal); NextButton.SetBackgroundImage(UIImage.FromFile("images/next_black.png"), UIControlState.Focused); PlayButton.AdjustsImageWhenHighlighted = true; PreviousButton.AdjustsImageWhenHighlighted = true; NextButton.AdjustsImageWhenHighlighted = true; PlayButton.AdjustsImageWhenDisabled = true; PreviousButton.AdjustsImageWhenDisabled = true; NextButton.AdjustsImageWhenDisabled = true; PlayButton.Enabled = false; PreviousButton.Enabled = false; NextButton.Enabled = false; PlayButton.PrimaryActionTriggered += PlayButton_PrimaryActionTriggered; PreviousButton.PrimaryActionTriggered += PreviousButton_PrimaryActionTriggered; NextButton.PrimaryActionTriggered += NextButton_PrimaryActionTriggered; UIVisualEffect blurEffect = UIBlurEffect.FromStyle(UIBlurEffectStyle.Light); UIVisualEffectView visualEffectView = new UIVisualEffectView(blurEffect); visualEffectView.Frame = new CoreGraphics.CGRect(0, -100, 1920, 1200); BackgroundImage.AddSubview(visualEffectView); CloudService.Instance.Init(new User() { TwitterId = "fakeId", Name = "Fake user" }); CloudService.Instance.Connected += Instance_Connected; DataService.Instance.Dispatcher = new DispatcherWrapper(this); }
private void AddTapRecognizer(int numberOfTaps) { var tapRecognizer = new UITapGestureRecognizer(() => { if (this.blurView != null) { this.blurView.RemoveFromSuperview(); } switch (this.rotator) { case 0: { this.UpdateEffectView(UIBlurEffect.FromStyle(UIBlurEffectStyle.ExtraLight)); this.rotator++; break; } case 1: { this.UpdateEffectView(UIBlurEffect.FromStyle(UIBlurEffectStyle.Dark)); this.rotator++; break; } case 2: { this.UpdateEffectView(UIBlurEffect.FromStyle(UIBlurEffectStyle.Light)); this.rotator++; break; } case 3: { this.blurView.RemoveFromSuperview(); this.rotator = 0; break; } default: break; } }); tapRecognizer.NumberOfTapsRequired = (uint)numberOfTaps; this.View.AddGestureRecognizer(tapRecognizer); }
public ChannelSelectionModal(UIImage img) { UIImageView BG = new UIImageView(View.Frame); BG.Image = img; BG.Frame = new CGRect(x: 0, y: 0, width: Variables.ScreenWidth, height: Variables.ScreenHeight); // Add the Image View to the parent view View.AddSubview(BG); var blur = UIBlurEffect.FromStyle(UIBlurEffectStyle.Dark); float x = 0; float y = 0; float width = (float)Variables.ScreenWidth; float height = (float)Variables.ScreenHeight; var blurView = new UIVisualEffectView(blur); blurView.Frame = new CGRect(x, y, width, height); View.Add(blurView); ModalPresentationStyle = UIModalPresentationStyle.FullScreen; int ChannelCount = 1; foreach (Channel ch in Application.Config.Channels) { if (ch.Device == DeviceType.Ios) { ChannelsButton = new UIButton(UIButtonType.System); ChannelsButton.SetTitle(ch.Title, UIControlState.Normal); ChannelsButton.TitleLabel.Font = UIFont.SystemFontOfSize(24, UIFontWeight.Bold); ChannelsButton.Frame = new CGRect(x: Variables.ScreenWidth / 2 - 270, y: ((Variables.ScreenHeight / 2) + (ChannelCount * 132) - 48), width: 540, height: 96); ChannelsButton.PrimaryActionTriggered += async(sender, e) => { //await DisplayChannelModal(); Variables.CurrentChannel = ch; ChannelSelected.Invoke(this, ch); Console.WriteLine($"{ch.Title} selected!"); }; View.AddSubview(ChannelsButton); ChannelCount--; } } }
public void UpdateStyle(UIBlurEffectStyle style) { blurView?.RemoveFromSuperview(); if (Device.IsIos8) { var blur = UIBlurEffect.FromStyle(style); blurView = new UIVisualEffectView(blur); } else { blurView = new UIToolbar { Opaque = true, Translucent = true, BarStyle = UIBarStyle.BlackTranslucent, }; } Add(blurView); }
public override void ViewDidLoad() { base.ViewDidLoad(); TableView.ContentInset = new UIEdgeInsets(20, 0, 0, 0); setupSearchController(); TableView.SetContentOffset(new CGPoint(0, searchBarHeight - 20), false); if (!UIAccessibility.IsReduceTransparencyEnabled) { TableView.BackgroundColor = UIColor.Clear; var blur = UIBlurEffect.FromStyle(UIBlurEffectStyle.Dark); TableView.BackgroundView = new UIVisualEffectView(blur); } }
protected virtual void SetBlur(BlurEffectStyle blur) { if (_previousBlur == blur) { return; } _previousBlur = blur; if (_blur != null) { _blur.RemoveFromSuperview(); _blur = null; } if (blur == BlurEffectStyle.None) { SetNeedsDisplay(); return; } UIBlurEffect blurEffect; switch (blur) { default: case BlurEffectStyle.ExtraLight: blurEffect = UIBlurEffect.FromStyle(UIBlurEffectStyle.ExtraLight); break; case BlurEffectStyle.Light: blurEffect = UIBlurEffect.FromStyle(UIBlurEffectStyle.Light); break; case BlurEffectStyle.Dark: blurEffect = UIBlurEffect.FromStyle(UIBlurEffectStyle.Dark); break; } _blur = new UIVisualEffectView(blurEffect); LayoutSubviews(); }
void SetupMenuBlurForMenu(UISideMenuNavigationController forMenu) { RemoveMenuBlurForMenu(forMenu); var view = forMenu.VisibleViewController?.View; if (forMenu == null || view == null || UIKit.UIAccessibility.IsReduceTransparencyEnabled) { return; } if (forMenu.OriginalMenuBackgroundColor == null) { forMenu.OriginalMenuBackgroundColor = view.BackgroundColor; } if (!BlurEffectStyle.HasValue) { return; } var blurEffect = UIBlurEffect.FromStyle(BlurEffectStyle.Value); var blurView = new UIVisualEffectView(blurEffect); view.BackgroundColor = UIColor.Clear; var tableViewController = forMenu.VisibleViewController as UITableViewController; if (tableViewController != null) { tableViewController.TableView.BackgroundView = blurView; tableViewController.TableView.SeparatorEffect = UIVibrancyEffect.FromBlurEffect(blurEffect); tableViewController.TableView.ReloadData(); } else { blurView.AutoresizingMask = UIViewAutoresizing.FlexibleHeight | UIViewAutoresizing.FlexibleWidth; blurView.Frame = view.Bounds; view.InsertSubview(blurView, atIndex: 0); } }
public override void ViewDidLoad() { base.ViewDidLoad(); View.AddSubview(_tableViewController.View); if (_headerView != null) { View.AddSubview(_headerView); } _tableViewController.TableView.BackgroundView = null; _tableViewController.TableView.BackgroundColor = UIColor.Clear; var effect = UIBlurEffect.FromStyle(UIBlurEffectStyle.Regular); _blurView = new UIVisualEffectView(effect); _blurView.Frame = View.Bounds; UpdateBackgroundColor(); }
private void InitializeFakeNavBar() { var blurEffect = UIBlurEffect.FromStyle(UIBlurEffectStyle.Regular); _blurView02 = new UIVisualEffectView(blurEffect) { ////BackgroundColor = seaShellColor.ColorWithAlpha(0.9f), }; var vibrancyEffect = UIVibrancyEffect.FromBlurEffect(blurEffect); var vibrancyEffectView = new UIVisualEffectView(vibrancyEffect); _plainView02 = new UIView() { BackgroundColor = ViewBackgroundColor, }; View.AddSubview(_blurView02); _blurView02.ContentView.Add(vibrancyEffectView); vibrancyEffectView.ContentView.Add(_plainView02); _blurView02.TranslatesAutoresizingMaskIntoConstraints = false; var index = 1; var topOffset = (HeightOfNavBars * index) + (SpacingBetweenNavBars * (index + 1)); ////_blurView02.TopAnchor.ConstraintEqualTo(View.SafeAreaLayoutGuide.TopAnchor, topOffset).Active = true; ////_blurView02.LeftAnchor.ConstraintEqualTo(View.LeftAnchor).Active = true; ////_blurView02.RightAnchor.ConstraintEqualTo(View.RightAnchor).Active = true; ////_blurView02.HeightAnchor.ConstraintEqualTo(HeightOfNavBars).Active = true; ////vibrancyEffectView.TranslatesAutoresizingMaskIntoConstraints = false; ////vibrancyEffectView.TopAnchor.ConstraintEqualTo(_blurView02.ContentView.TopAnchor).Active = true; ////vibrancyEffectView.LeftAnchor.ConstraintEqualTo(_blurView02.ContentView.LeftAnchor).Active = true; ////vibrancyEffectView.RightAnchor.ConstraintEqualTo(_blurView02.ContentView.RightAnchor).Active = true; ////vibrancyEffectView.BottomAnchor.ConstraintEqualTo(_blurView02.ContentView.BottomAnchor).Active = true; ////_plainView02.TranslatesAutoresizingMaskIntoConstraints = false; ////_plainView02.TopAnchor.ConstraintEqualTo(vibrancyEffectView.ContentView.TopAnchor).Active = true; ////_plainView02.LeftAnchor.ConstraintEqualTo(vibrancyEffectView.ContentView.LeftAnchor).Active = true; ////_plainView02.RightAnchor.ConstraintEqualTo(vibrancyEffectView.ContentView.RightAnchor).Active = true; ////_plainView02.BottomAnchor.ConstraintEqualTo(vibrancyEffectView.ContentView.BottomAnchor).Active = true; }
public void SetLoading(bool loading) { if (loading) { LoadingIndicator.StartAnimating(); UIBlurEffect blurEffect = UIBlurEffect.FromStyle(UIBlurEffectStyle.Light); blurSubview = new UIVisualEffectView(blurEffect); blurSubview.Frame = ThumbnailImage.Frame; ThumbnailImage.AddSubview(blurSubview); } else { if (blurSubview != null) { blurSubview.RemoveFromSuperview(); blurSubview = null; } LoadingIndicator.StopAnimating(); } }
void Setup() { imageView = new UIImageView (); imageView.ContentMode = UIViewContentMode.ScaleAspectFit; imageView.TranslatesAutoresizingMaskIntoConstraints = false; blurEffect = UIBlurEffect.FromStyle (UIBlurEffectStyle.ExtraLight); }