public override void ViewDidLoad() { base.ViewDidLoad(); button1 = UIButton.FromType(UIButtonType.RoundedRect); button1.Frame = new RectangleF(50, 20, 200, 40); button1.SetTitle("#myButton1 .allButtons", UIControlState.Normal); PXEngine.SetStyleId(button1, "myButton1"); PXEngine.SetStyleClass(button1, "allButtons"); button2 = UIButton.FromType(UIButtonType.RoundedRect); button2.Frame = new RectangleF(50, 70, 200, 40); button2.SetTitle("#myButton2 .allButtons", UIControlState.Normal); PXEngine.SetStyleId(button2, "myButton2"); PXEngine.SetStyleClass(button2, "allButtons"); button3 = UIButton.FromType(UIButtonType.RoundedRect); button3.Frame = new RectangleF(50, 120, 200, 40); button3.SetTitle("#myButton3 .allButtons", UIControlState.Normal); PXEngine.SetStyleId(button3, "myButton3"); PXEngine.SetStyleClass(button1, "allButtons"); PXEngine.SetStyleCSS(button3, "background-color: green; border-radius: 5;"); this.View.AddSubview(button1); this.View.AddSubview(button2); this.View.AddSubview(button3); }