<UserControl x:Class="ChartSamples.AxisOrigin"
    xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" >
  <UserControl.Resources>
    <SolidColorBrush x:Key="CE_SampleForeground" Color="#FFF0F8FE"/>
    <Style x:Key="CE_SampleChart" TargetType="c1:C1Chart">
      <Setter Property="Foreground" Value="#FFF0F8FE" />
      <Setter Property="Background" Value="#ff071D2E" />
      <Setter Property="BorderBrush" Value="#FF8FB4CC" />
      <Setter Property="BorderThickness" Value="1" />
      <Setter Property="Padding" Value="10" />
    </Style>
  </UserControl.Resources>
  
    <Grid x:Name="LayoutRoot" Margin="8" >
    <Grid.RowDefinitions>
      <RowDefinition Height="Auto" />
      <RowDefinition Height="Auto" />
      <RowDefinition />
    </Grid.RowDefinitions>
    <Grid.ColumnDefinitions>
      <ColumnDefinition Width="Auto" />
      <ColumnDefinition />
    </Grid.ColumnDefinitions>
      <Border Grid.ColumnSpan="2" Margin="4">
        <TextBlock Margin="4" HorizontalAlignment="Center" Text="Use the scrollbars to change axis origins" 
                   VerticalAlignment="Center" Foreground="{StaticResource CE_SampleForeground}"/>
      </Border>
    <ScrollBar x:Name="vs" Grid.Row="2" Value="100" Minimum="0" Maximum="100" ValueChanged="vs_ValueChanged"/>
    <ScrollBar x:Name="hs" Grid.Row="1" Grid.Column="1" Orientation="Horizontal" Minimum="0" Maximum="100" ValueChanged="hs_ValueChanged"/>
      <c1:C1Chart x:Name="chart" Grid.Row="2" Grid.Column="1" ChartType="Line" Style="{StaticResource CE_SampleChart}"/>
    </Grid>
</UserControl>
