Click or drag to resize

Default BarType template

BarType implements the ITemplate interface and supports Xaml templates so that user can edit the properties from the supported views. The BarValue property is reserved and user can use it as a parameter. The BarValue property is binded with the default Xaml template.

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 BarType template
<DataTemplate x:Key="{x:Static bCommon:ResourceKey.DefaultBarTypeTemplate}">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition />
        </Grid.RowDefinitions>

        <TextBlock Text="{Binding Path=., Converter={StaticResource displayNameConverter}, ConverterParameter=BarValue}" Margin="3" FlowDirection="RightToLeft" VerticalAlignment="Center" FontWeight="SemiBold"/>
        <bControls:IntegerUpDown Grid.Column="1" Value="{Binding BarValue, Mode=TwoWay}" Minimum="1" Increment="1" Margin="3" />
    </Grid>
</DataTemplate>