Skip to content

Instantly share code, notes, and snippets.

@forki
Created March 22, 2012 18:41
Show Gist options
  • Save forki/2161484 to your computer and use it in GitHub Desktop.
Save forki/2161484 to your computer and use it in GitHub Desktop.
A sample XAML file
<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525">
<Grid Name="MainGrid">
<StackPanel Name="StackPanel1">
<Button Name="Button1">First Button</Button>
<Button Name="Button2">Second Button</Button>
</StackPanel>
</Grid>
</Window>
@NoelKennedy
Copy link

Hi forki,

Please add missing Name element to the Window attribute : Name="MainWindow", example doesn't compile without it!

Thanks for blogging about the type provider!

Cheers,

Noel

@Art
Copy link

Art commented Feb 1, 2013

Thanks and Thanks to Noel too!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment