Skip to content

Instantly share code, notes, and snippets.

@cwensley
Created June 28, 2013 17:34
Show Gist options
  • Save cwensley/5886507 to your computer and use it in GitHub Desktop.
Save cwensley/5886507 to your computer and use it in GitHub Desktop.
class UserInfoPanel : Panel
{
public UserInfoPanel()
{
var layout = new DynamicLayout(this);
layout.Add(new Label
{
Text = "User Info",
Font = new Font(SystemFont.Bold, 15)
});
layout.Add(new Label
{
Text = "User Age"
});
TextBox userNameBox = new TextBox();
userNameBox.PlaceholderText = "Insert Age";
layout.Add(userNameBox);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment