<?xml version="1.0" encoding="utf-8"?>
<UserControl x:Class="ChartSamples.AxisOrigin" 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">

    <Grid x:Name="LayoutRoot">
    <Grid.RowDefinitions>
      <RowDefinition Height="Auto" />
      <RowDefinition Height="Auto" />
      <RowDefinition />
    </Grid.RowDefinitions>
    <Grid.ColumnDefinitions>
      <ColumnDefinition Width="Auto" />
      <ColumnDefinition />
    </Grid.ColumnDefinitions>
      <Border Grid.ColumnSpan="2" Margin="0 0 0 20">
        <TextBlock Text="Use the scrollbars to change axis origins" VerticalAlignment="Center" />
      </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" />
    </Grid>
</UserControl>