<UserControl
    x:Class="FlexChartExplorer.Zoom"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:Chart="http://schemas.componentone.com/winfx/2006/xaml"
    mc:Ignorable="d">

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" x:Name="row"/>
            <RowDefinition />
        </Grid.RowDefinitions>
        <Button Width="100" Height="30" Content="Reset Zoom" Click="Button_Click" Margin="10 5 0 10" HorizontalAlignment="Left"/>
        <Chart:C1FlexChart x:Name="flexChart" ChartType="LineSymbols" ToolTip="{x:Null}" Background="White" Grid.Row="1" >
            <Chart:Series x:Name="Function1" SeriesName="Function 1" BindingX="XVals" Binding="YVals"/>
            <Chart:Series x:Name="Function2" SeriesName="Function 2" BindingX="XVals" Binding="YVals"/>
        </Chart:C1FlexChart>
        <Canvas Grid.Row="1" x:Name="reversibleFrameContainer" Visibility="Collapsed" Background="Transparent" IsHitTestVisible="False">
            <Path IsHitTestVisible="False" StrokeDashArray="2, 2" Stroke="Black">
                <Path.Data>
                    <RectangleGeometry x:Name="reversibleFrame"/>
                </Path.Data>
            </Path>
        </Canvas>
    </Grid>
</UserControl>
