Click or drag to resize

Default Strategy Template

An Strategy implements the ITemplate interface and supports Xaml templates so that user can edit the properties from the supported views. The default template is bounded to the 'Period' property. If you want to use the default Xaml template then please assign a property (int or double etc) with the name 'Period'.

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 Strategy template
<DataTemplate x:Key="{x:Static bCommon:ResourceKey.DefaultStrategyTemplate}">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width=".5*" />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>

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

    </Grid>
</DataTemplate>