<Window x:Class="ContourDemo.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:oxy="clr-namespace:OxyPlot.Wpf;assembly=OxyPlot.Wpf" Title="ContourDemo" Height="480" Width="640">
    <DockPanel>
        <Menu DockPanel.Dock="Top">
            <MenuItem Header="File">
                <MenuItem Header="E_xit" Click="FileExit"/>
            </MenuItem>
            <MenuItem x:Name="ExamplesMenu" Header="Examples" ItemsSource="{Binding Examples}">
                <MenuItem.ItemContainerStyle>
                    <Style TargetType="MenuItem">
                        <EventSetter Event="Click" Handler="ExampleClick"/>
                    </Style>
                </MenuItem.ItemContainerStyle>
            </MenuItem>
        </Menu>
        <oxy:PlotView Model="{Binding SelectedExample.PlotModel}"/>
    </DockPanel>
</Window>
