<?xml version="1.0" encoding="utf-8"?>
<UserControl x:Class="ChartSamples.InteractiveChart" 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 />
      <RowDefinition Height="Auto" />
    </Grid.RowDefinitions>
     <StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="0 0 0 10">
          <TextBlock VerticalAlignment="Center" Text="Axis:" Height="20" Margin="0 0 5 0" />
          <RadioButton Margin="0 0 2 0" x:Name="rbX" Content="X" Checked="rb_Checked" Height="20" />
          <RadioButton Margin="0 0 2 0" x:Name="rbY" Content="Y" Checked="rb_Checked" Height="20" />
          <RadioButton Margin="0 0 2 0" x:Name="rbXY" Content="XY" Checked="rb_Checked" IsChecked="true" Height="20" />
          <Button Margin="30 0 0 0" Content="ZoomOut" Click="Button_Click" Width="140" />
      </StackPanel>
      <c1:C1Chart Grid.Row="1" x:Name="c1chart" ChartType="Line">
        <c1:C1Chart.Actions>
          <c1:ZoomAction Fill="#50ffffff" />
          <c1:TranslateAction Modifiers="Shift" />
          <c1:ScaleAction Modifiers="Control" />
        </c1:C1Chart.Actions>
      <c1:C1Chart.View>
        <c1:ChartView>
          <c1:ChartView.AxisX>
            <c1:Axis>
              <c1:Axis.ScrollBar>
                <c1:AxisScrollBar Visibility="Collapsed" />
              </c1:Axis.ScrollBar>
            </c1:Axis>
          </c1:ChartView.AxisX>
          <c1:ChartView.AxisY>
            <c1:Axis>
              <c1:Axis.ScrollBar>
                <c1:AxisScrollBar Visibility="Collapsed" />
              </c1:Axis.ScrollBar>
            </c1:Axis>
          </c1:ChartView.AxisY>
        </c1:ChartView>
      </c1:C1Chart.View>
        <c1:C1ChartLegend Grid.Row="1" x:Name="legend" />
      </c1:C1Chart>

    <StackPanel Orientation="Vertical" Grid.Row="2" Margin="0 10 0 0" Cursor="Hand">
      <TextBlock>Mouse button - zoom </TextBlock>
      <TextBlock>Ctrl + Mouse button - scale </TextBlock>
      <TextBlock>Shift + Mouse button - translate(scroll) </TextBlock>
    </StackPanel>
  </Grid>
</UserControl>