Created
February 20, 2013 19:37
-
-
Save praeclarum/4998608 to your computer and use it in GitHub Desktop.
Linq to UIViews
This file contains hidden or 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
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