Created
December 17, 2013 10:32
-
-
Save wayne-o/8002925 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var button1 = new UIButton (UIButtonType.Custom) ; | |
var button2 = new UIButton (UIButtonType.Custom) ; | |
button1.SetBackgroundImage (UiHelper.Screen2_Button2, UIControlState.Normal); | |
button2.SetBackgroundImage (UiHelper.Screen2_Button1, UIControlState.Normal); | |
var frame1 = button1.Frame; | |
var frame2 = button2.Frame; | |
frame1.Height = UiHelper.Screen2_Button1.Size.Height; | |
frame1.Width = UiHelper.Screen2_Button1.Size.Width; | |
frame2.Height = UiHelper.Screen2_Button2.Size.Height; | |
frame2.Width = UiHelper.Screen2_Button2.Size.Width; | |
button1.Frame = frame1; | |
button2.Frame = frame2; | |
var vm = ((SomeViewModel)this.BindingContext.DataContext); | |
var cmd1 = vm.GSomeCommand1; | |
var cmd2 = vm.SomeCommand2; | |
Root = new RootElement | |
{ | |
new Section | |
{ | |
new SafeClaimDoubleButton(button1, button2, ""){ | |
Command1 = cmd1, | |
Command2 = cmd2 | |
}, | |
} | |
}; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment