<UserControl x:Class="ChartSamples.LogAxes"
    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>
    <DataTemplate x:Key="ax" >
      <Border Width="30">
      <StackPanel Orientation="Horizontal" HorizontalAlignment="Center"  >
        <TextBlock FontSize="12" Foreground="White" VerticalAlignment="Bottom" Margin="0,6,0,0" Text="{Binding FormattedLogBase}" />
        <TextBlock FontSize="10" Foreground="White"  VerticalAlignment="Top" Text="{Binding LogValue}" />
      </StackPanel>
        </Border>
    </DataTemplate>
  </UserControl.Resources>
  <Grid x:Name="LayoutRoot" >
    <Grid.RowDefinitions>
      <RowDefinition Height="Auto"/>
      <RowDefinition />
    </Grid.RowDefinitions>
    <Border Margin="4">
      <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
        <TextBlock Text="AxisX LogBase:" Margin="4" VerticalAlignment="Center" Foreground="{StaticResource CE_SampleForeground}"/>
        <ComboBox x:Name="xbase" Width="50" Foreground="Black" VerticalAlignment="Center"/>
        <TextBlock Text="AxisY LogBase:" Margin="16,4,4,4" VerticalAlignment="Center" Foreground="{StaticResource CE_SampleForeground}"/>
        <ComboBox x:Name="ybase" Width="50" Foreground="Black" VerticalAlignment="Center"/>
        <CheckBox x:Name="templ" Content="Custom template" Foreground="{StaticResource CE_SampleForeground}" Margin="16,4,4,4" VerticalAlignment="Center"/>
      </StackPanel>
    </Border>
    <c1:C1Chart Grid.Row="1" x:Name="chart" ChartType="LineSymbols" Style="{StaticResource CE_SampleChart}">
      <c1:C1ChartLegend Foreground="{StaticResource CE_SampleForeground}"/>
    </c1:C1Chart>
  </Grid>
</UserControl>
