GetRandomColor() public static method

public static GetRandomColor ( ) : UIKit.UIColor
return UIKit.UIColor
Exemplo n.º 1
0
        public override void ViewDidLoad()
        {
            View.BackgroundColor = UIColor.White;

            base.ViewDidLoad();

            // Adjust this to put pager on bottom or top
            //ShowOnBottom = true;

            //IconAlignment = IconAlignment.Right;

            OnShowViewController += OnPageShowing;

            if (RespondsToSelector(new Selector("setEdgesForExtendedLayout:")))
            {
                EdgesForExtendedLayout = UIRectEdge.None;
            }

            Datasource          = this;
            TabColor            = UIColorHelpers.GetRandomColor();
            HeaderFont          = UIFont.SystemFontOfSize(25);
            HeaderColor         = UIColor.DarkGray;
            SelectedHeaderFont  = UIFont.BoldSystemFontOfSize(25);
            SelectedHeaderColor = UIColor.Black;
            IconSpacing         = 20;
            BottomLineColor     = UIColor.White;
            Title = "SGTabbedPager Sample";
        }
Exemplo n.º 2
0
        public override void ViewDidLoad()
        {
            View.BackgroundColor = UIColor.White;

            base.ViewDidLoad();

            if (RespondsToSelector(new Selector("setEdgesForExtendedLayout:")))
            {
                EdgesForExtendedLayout = UIRectEdge.None;
            }

            Datasource      = this;
            TabColor        = UIColorHelpers.GetRandomColor();
            HeaderFont      = UIFont.BoldSystemFontOfSize(25);
            HeaderColor     = UIColor.DarkGray;
            BottomLineColor = UIColor.White;
            Title           = "SGTabbedPager Sample";
        }
Exemplo n.º 3
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            View.BackgroundColor = UIColorHelpers.GetRandomColor();

            var label = new UILabel();

            Title = label.Text = $"Page {Number}";

            Add(label);

            View.SubviewsDoNotTranslateAutoresizingMaskIntoConstraints();

            View.AddConstraints(
                label.AtTopOf(View, 10f),
                label.AtLeftOf(View, 10f),
                label.AtRightOf(View, 10f));
        }