Chapters/graphical-controllers-wpf/snippet.xml

<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Disk Report" Height="355" Width="535" Background="#FFBDB3B3">
<Grid>
    <Button x:Name="btnRun" Content="_Run" HorizontalAlignment="Left"
    Height="20" Margin="343,291,0,0" VerticalAlignment="Top" Width="74"/>
    <Button x:Name="btnQuit" Content="_Quit" HorizontalAlignment="Left"
    Margin="433,291,0,0" VerticalAlignment="Top" Width="75"
    RenderTransformOrigin="0.365,-0.38"/>
    <ComboBox x:Name="comboNames" HorizontalAlignment="Left" Height="20"
    Margin="11,25,0,0" VerticalAlignment="Top" Width="166"/>
    <Label x:Name="label" Content="Select a computer"
    HorizontalAlignment="Left" Height="27" Margin="9,3,0,0"
    VerticalAlignment="Top" Width="206"/>
    <DataGrid x:Name="dataGrid" HorizontalAlignment="Left" Height="229"
    Margin="10,55,0,0" VerticalAlignment="Top" Width="498"/>
</Grid>
</Window>