Skip to content

Instantly share code, notes, and snippets.

@karimhernandez
Created January 11, 2012 07:53
Show Gist options
  • Select an option

  • Save karimhernandez/1593622 to your computer and use it in GitHub Desktop.

Select an option

Save karimhernandez/1593622 to your computer and use it in GitHub Desktop.
MetroXamlpad UI
<UserControl
x:Class="MetroXamlpad.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Grid x:Name="LayoutRoot" Background="#FF0C0C0C">
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
<RowDefinition MaxHeight="50" Height="Auto"/>
</Grid.RowDefinitions>
<Grid x:Name="host" Margin="2,2,2,0"/>
<TextBox x:Name="xamlEditor" Grid.Row="1" Margin="2"
AcceptsReturn="True" TextWrapping="Wrap"
KeyDown="xamlEditor_KeyDown" KeyUp="xamlEditor_KeyUp"
LostFocus="xamlEditor_LostFocus"/>
<TextBlock x:Name="errorDisplay" Grid.Row="2" Foreground="LightPink" />
</Grid>
</UserControl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment