<?xml version="1.0" encoding="utf-8"?>
<UserControl mc:Ignorable="d" x:Class="ChartSamples.ZoomChart" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:ChartSamples" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006">
  
	<Grid x:Name="LayoutRoot">
		<Grid.RowDefinitions>
			<RowDefinition Height="2*" />
			<RowDefinition Height="5*" />
			<RowDefinition Height="Auto" />
		</Grid.RowDefinitions>
		
		<Border Grid.Row="2" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,10,0,0">
			<c1:C1ChartLegend x:Name="legend" Orientation="Horizontal" VerticalAlignment="Top" Grid.Row="0" />
		</Border>

		<c1:C1Chart x:Name="chart" Margin="0,10,0,0">
			<c1:C1Chart.View>
				<c1:ChartView />
			</c1:C1Chart.View>
		</c1:C1Chart>

		<!-- slider over full chart -->
		<local:ChartSlider x:Name="slider" Minimum="0" Maximum="1" ValueChange="0.1" UpperValue="0.25" LowerValueChanged="slider_LowerValueChanged" UpperValueChanged="slider_UpperValueChanged" GotFocus="slider_GotFocus" />

        <c1:C1Chart x:Name="chartZoom" Grid.Row="1">
			<c1:C1Chart.View>
				<c1:ChartView />
			</c1:C1Chart.View>
		</c1:C1Chart>
    
	</Grid>
</UserControl>