<Window x:Class="OpenGraphWpfClient.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:wf="clr-namespace:OpenGraphWpfClient"  
        Title="MainWindow" Height="520" Width="934" SizeChanged="Window_SizeChanged">
    <Grid>
        <Menu Height="23" HorizontalAlignment="Left" Margin="12,5,0,0" Name="menu1" VerticalAlignment="Top" Width="846">

            <MenuItem Header="View">
                <MenuItem Header="Select All" Name="SelectAll" Click="SelectAll_Click" />
                <MenuItem Header="Unselect All" Name="UnselectAll" Click="UnselectAll_Click" />
                <MenuItem Header="Reverse Select" Name="ReverseSelect" Click="ReverseSelect_Click" />
                <MenuItem Header="Show Selected" Name="ShowSelected" Click="ShowSelected_Click" />
                <Separator />
                <MenuItem Header="View Front" Name="ViewFront" Click="ViewFront_Click" />
                <MenuItem Header="Isometric" Name="ViewIsometric" Click="ViewIsometric_Click" />
                <MenuItem Header="Reset View" Name="ResetView" Click="ResetView_Click" />
                <Separator />
                <MenuItem Header="Project Point" Name="ProjectPoint" Click="ProjectPoint_Click" />
                <Separator />
                <MenuItem Header="Show Axes" Name="ShowAxes" Click="ShowAxes_Click" />
            </MenuItem>
            <MenuItem Header="Draw">
                <MenuItem Header="Draw Nodes" Name="DrawNodes" Click="DrawNodes_Click" />
                <MenuItem Header="Draw Lines" Name="DrawLines" Click="DrawLines_Click" />
                <MenuItem Header="Draw Triangles" Name="DrawTriangles" Click="DrawTriangles_Click" />
                <MenuItem Header="Draw Quads" Name="DrawQuads" Click="DrawQuads_Click" />
                <Separator />
                <MenuItem Header="Draw Window Nodes" Name="DrawWindowNodes" Click="DrawWindowNodes_Click" />
                <MenuItem Header="Draw Window Lines" Name="DrawWindowLines" Click="DrawWindowLines_Click" />
                <MenuItem Header="Draw Window Triangles" Name="DrawWindowTriangles" Click="DrawWindowTriangles_Click" />
                <MenuItem Header="Draw Window Quads" Name="DrawWindowQuads" Click="DrawWindowQuads_Click" />
                <Separator />
                <MenuItem Header="Clear" Name="Clear" Click="Clear_Click" />
                <Separator />
                <MenuItem Header="Save Image" Name="SaveImage" Click="SaveImage_Click" />
            </MenuItem>
            <MenuItem Header="Mode">
                <MenuItem Header="Default" Name="ModeDefault" Click="ModeDefault_Click" />
                <MenuItem Header="Track" Name="ModeTrack" Click="ModeTrack_Click" />
                <MenuItem Header="Select" Name="ModeSelect" Click="ModeSelect_Click" />
                <MenuItem Header="Pan" Name="ModePan" Click="ModePan_Click" />
                <MenuItem Header="Rotate" Name="ModeRotate" Click="ModeRotate_Click" />
                <MenuItem Header="Window Zoom" Name="ModeWindowZoom" Click="ModeWindowZoom_Click" />
                <MenuItem Header="Pixel Pan" Name="ModePixelPan" Click="ModePixelPan_Click" />
            </MenuItem>
        </Menu>

        <TextBlock Height="315" HorizontalAlignment="Left" Margin="12,49,0,0" Name="textBlock1" Text="WPF Application&#13;&#10;&#13;&#10;The graphics window to the right is hosted by the WindowsFormsHost WPF control" VerticalAlignment="Top" Width="143" TextWrapping="Wrap" SnapsToDevicePixels="True" Background="#FFFFEFEF" TextAlignment="Center" />
        <WindowsFormsHost Margin="182,49,40,31" Name="windowsFormsHost1">
            <wf:OpenGLUserControl Name="openGLUserControl"></wf:OpenGLUserControl>
        </WindowsFormsHost>
        <Button Content="Show Winform" Height="23" HorizontalAlignment="Left" Margin="20,391,0,0" Name="button1" VerticalAlignment="Top" Width="124" Click="button1_Click" />
    </Grid>
</Window>
