<Window x:Class="XDrawing.Drawings.DrawingTest"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            xmlns:xyz="clr-namespace:XDrawing.Drawings"

    Title="Window1" Height="359" Width="484">
  <Grid>
    <xyz:TestControl x:Name="Preview" Margin="5,5,5,30"></xyz:TestControl>
    <Button Height="23" HorizontalAlignment="Left" Margin="5,0,0,0" Name="button1" VerticalAlignment="Bottom" Width="75" Click="button1_Click">Invalidate</Button>
    <Button Height="23" HorizontalAlignment="Left" Margin="98,0,0,0" Name="button2" VerticalAlignment="Bottom" Width="75" Click="button2_Click">Save XAML</Button>
  </Grid>

</Window>
