Skip to content

Instantly share code, notes, and snippets.

@scottlowe
Created July 24, 2010 15:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scottlowe/488749 to your computer and use it in GitHub Desktop.
Save scottlowe/488749 to your computer and use it in GitHub Desktop.
The quest for something less noisy than XAML
%YAML 1.2
---
UserControl:
Name: AddressBookControl
BackgroundColor: White
Controls:
StackPanel:
Children:
- Label: {Color: Blue, Content: This is the title}
- TextBox: {Text: Hello World, FontSize: 14}
- Button: {Width: 100, Height: 23, Content: Click Me!}
- Grid:
Width: 400px
Margin: 4
ColumnDefinitions: [ColumnDefinition, ColumnDefinition, ColumnDefinition]
RowDefinitions: [RowDefinition, RowDefinition]
Children:
- TextBlock: {Grid.Column: 0, Text: Foo}
- TextBlock: {Grid.Column: 1, Text: Bar}
- TextBlock: {Grid.Column: 2, Text: Quotes are not often required}
- TextBlock: {Grid.Column: 0, Grid.Row: 1, Text: Foo}
- TextBlock: {Grid.Column: 1, Grid.Row: 1, Text: Bar}
- TextBlock: {Grid.Column: 2, Grid.Row: 1, Text: Quotes are not often required}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment