Default Indicator Template |
An Indicator 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 with the name 'Period' (type = int/System.Int32).
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"
<DataTemplate x:Key="{x:Static bCommon:ResourceKey.DefaultIndicatorTemplate}"> <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>