Click or drag to resize

Default ChartStyle template

The ChartStyle implements the ITemplate interface and supports Xaml templates so that user can edit the properties from the supported views. The default ChartStyle template is binded with the following properties:

Common namespaces
xmlns:bControls="clr-namespace:SharpCharts.Base.Controls;assembly=SharpCharts.Base"
xmlns:bCommon="clr-namespace:SharpCharts.Base.Common;assembly=SharpCharts.Base"
xmlns:bOrder="clr-namespace:SharpCharts.Base.Order;assembly=SharpCharts.Base"
xmlns:bData="clr-namespace:SharpCharts.Base.Data;assembly=SharpCharts.Base"
Default ChartStyle template
<DataTemplate x:Key="{x:Static bCommon:ResourceKey.DefaultChartStyleTemplate}">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <TextBlock Text="{Loc LblBarWidth}"  Margin="3" FlowDirection="RightToLeft" VerticalAlignment="Center" FontWeight="SemiBold" />
        <TextBlock Grid.Row="1" Text="{Loc LblBarSpace}"  Margin="3" FlowDirection="RightToLeft" VerticalAlignment="Center" FontWeight="SemiBold"/>
        <TextBlock Grid.Row="2" Text="{Loc LblUpBarColor}" Margin="3" FlowDirection="RightToLeft" VerticalAlignment="Center" FontWeight="SemiBold" />
        <TextBlock Grid.Row="3" Text="{Loc LblDownBarColor}" Margin="3" FlowDirection="RightToLeft" VerticalAlignment="Center" FontWeight="SemiBold" />

        <bControls:DoubleUpDown Grid.Column="1" Value="{Binding Path=BarWidth, Mode=TwoWay}"  Minimum="1" Increment="1" Margin="3"/>
        <bControls:DoubleUpDown Grid.Row="1" Grid.Column="1" Value="{Binding Path=BarSpace, Mode=TwoWay}"  Minimum="1" Increment="1" Margin="3"/>
        <ComboBox Grid.Column="1" Grid.Row="2" ItemsSource="{Binding Source={StaticResource {x:Static bCommon:ResourceKey.BrushListKey}}}"
                SelectedValue="{Binding UpBarBrush, Converter={StaticResource ResourceKey={x:Static bCommon:ResourceKey.BrushConverterKey}}}"
                SelectedValuePath="Brush" Margin="3" />

        <ComboBox Grid.Column="1" Grid.Row="3" ItemsSource="{Binding Source={StaticResource {x:Static bCommon:ResourceKey.BrushListKey}}}"
                SelectedValue="{Binding DownBarBrush, Converter={StaticResource ResourceKey={x:Static bCommon:ResourceKey.BrushConverterKey}}}"
                SelectedValuePath="Brush" Margin="3"/>

    </Grid>
</DataTemplate>