Apply() public method

public Apply ( ) : void
return void
Ejemplo n.º 1
0
        UITableViewCell GetNotReadyCell(UITableView tableView)
        {
            var c = tableView.DequeueReusableCell("NR");

            if (c == null)
            {
                c = new UITableViewCell(UITableViewCellStyle.Default, "NR");
                theme.Apply(c);
                c.TextLabel.TextColor     = UIColor.Gray;
                c.TextLabel.TextAlignment = UITextAlignment.Center;
                c.SelectionStyle          = UITableViewCellSelectionStyle.None;
                c.Accessory = UITableViewCellAccessory.None;

                var activity = new UIActivityIndicatorView(UIActivityIndicatorViewStyle.Gray)
                {
                    Frame = new CGRect(100, 12, 21, 21),
                    Tag   = 42,
                };
                c.ContentView.AddSubview(activity);
            }

            var a = (UIActivityIndicatorView)c.ViewWithTag(42);

            a.StartAnimating();

            c.TextLabel.Text = FileSystem.SyncStatus;

            return(c);
        }
        protected override void SetRootViewController()
        {
            if (IsPhone)
            {
                window.RootViewController = docListNav;
            }
            else
            {
                var blankVC = new BlankVC();
                blankVC.View.BackgroundColor = UIColor.White;

                detailNav = new UINavigationController(blankVC);
                detailNav.NavigationBar.BarStyle = Theme.NavigationBarStyle;
                detailNav.ToolbarHidden          = false;
                Theme.Apply(detailNav.Toolbar);

                split = new UISplitViewController {
                    PresentsWithGesture = false,
                    ViewControllers     = new UIViewController[] {
                        docListNav,
                        detailNav,
                    },
                    Delegate = new SplitDelegate(),
                };

                window.RootViewController = split;
            }
        }
Ejemplo n.º 3
0
		protected virtual void SetTheme (Theme newTheme)
		{
			Theme.Current = newTheme;
			newTheme.Apply ();
			UpdateFonts ();
		}