Skip to content

Instantly share code, notes, and snippets.

@benhysell
Created October 24, 2014 19:49
Show Gist options
  • Save benhysell/6352980a16321cd2c149 to your computer and use it in GitHub Desktop.
Save benhysell/6352980a16321cd2c149 to your computer and use it in GitHub Desktop.
mtd mvvmcross
Root = new RootElement("Settings")
{
new Section ("") {
(Element)new RootElement ("Units", new RadioGroup (Settings.UnitsInches ? 0 : 1)) {
new Section ("Select Units for Measurements") {
new RadioElement ("Inches"),
new RadioElement ("Centimeters"),
},
}.Bind(bindings, e => e.RadioSelected, vm => vm.UnitsIndex) as Element,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment