Skip to content

Instantly share code, notes, and snippets.

@praeclarum
Created February 20, 2013 19:37
Show Gist options
  • Save praeclarum/4998608 to your computer and use it in GitHub Desktop.
Save praeclarum/4998608 to your computer and use it in GitHub Desktop.
Linq to UIViews
public static View CreateDeclarativeUI (Database database)
{
var view = Binding.Bind (() => new View {
Subviews = from t in database.Tables select new HBox {
Title = t.Name,
Subviews = from c in t.Columns select new Label {
Text = t.Name + "::" + c.Name,
},
}
});
return view;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment