Beispiel #1
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();
            // Perform any additional setup after loading the view, typically from a nib.

            RaisedButton.SetTitle(title: "Button Raised", forState: UIControlState.Normal);
            RaisedButton.SetTitleColor(color: Color.White, forState: UIControlState.Normal);
            RaisedButton.PulseColor      = Color.White;
            RaisedButton.TitleLabel.Font = RobotoFont.RegularWithSize(24f);
            RaisedButton.BackgroundColor = Color.Blue.Base;
        }
        private void prepareRaisedButtonExample()
        {
            nfloat w      = 200;
            var    button = new RaisedButton(new CGRect((View.Bounds.Width - w) / 2, 200, w, 48));

            button.SetTitle(title: "Button Raised", forState: UIControlState.Normal);
            button.SetTitleColor(color: MaterialColor.Blue.Base, forState: UIControlState.Normal);
            button.PulseColor      = MaterialColor.Blue.Base;
            button.TitleLabel.Font = RobotoFont.RegularWithSize(24f);

            // Add button to UIViewController.
            View.AddSubview(button);
        }