<Window x:Class="HistogramDemo.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="HistogramDemo" Height="480" Width="640">
    <DockPanel Margin="10">
        <StackPanel DockPanel.Dock="Bottom" Width="300">
            <TextBlock Name="instructions" Text="Use the mouse to 'drag' a line across the image below ..." FontSize="10" Foreground="#333333" Margin="5" TextWrapping="Wrap"/>
            <Grid Name="grid" MouseLeftButtonUp="Grid_MouseLeftButtonUp" MouseLeftButtonDown="Grid_MouseLeftButtonDown">
                <Image Width="300" Height="200" x:Name="image" Source="/Examples/HistogramDemo/hare.jpg"/>
                <Line Stroke="Black" StrokeThickness="3" x:Name="line"/>
            </Grid>
        </StackPanel>
        <Grid>
            <oxy:PlotView x:Name="chart"/>
        </Grid>
    </DockPanel>
</Window>
