Hi,
I'm trying to style the thumbs and thumb lines on a SfRangeNavigator, and failing. Is it possible to provide an example to get me started correctly.
I'm using the SfRangeNavigator as my range is numeric and not a date range.
Thanks for any assistance provided.
Eric
Thank you, Look forward to seeing what your workaround is.
Eric
|
<Grid.Resources>
<ControlTemplate x:Key="NavigatorTemplate"
TargetType="chart:ResizableScrollBar" >
<ControlTemplate x:Key="HorizontalNearThumbTemplate"
TargetType="Thumb">
<Grid x:Name="left">
<Line HorizontalAlignment="Right" Stroke="Red"
StrokeThickness="2" Stretch="Fill" X1="0" Y1="0"
X2="0" Y2="1"/>
<Canvas VerticalAlignment="Center" Margin="-15,0,-15,0">
<Ellipse Height="30" Width="30" Stroke="Blue"
StrokeThickness="12" Fill="White"/>
</Canvas>
</Grid>
</ControlTemplate>
<ControlTemplate x:Key="HorizontalFarThumbTemplate"
TargetType="Thumb">
<Grid x:Name="right">
<Line HorizontalAlignment="Right" Stroke="Red"
StrokeThickness="2" Stretch="Fill" X1="0" Y1="0"
X2="0" Y2="1"/>
<Canvas VerticalAlignment="Center" Margin="-15,0,-15,0">
<Ellipse Height="30" Width="30" Stroke="Blue"
StrokeThickness="12" Fill="White"/>
</Canvas>
</Grid>
</ControlTemplate>
</ControlTemplate>
<ControlTemplate x:Key="navigator"
TargetType="chart:SfRangeNavigator">
. . .
<chart:RangeNavigatorSelector x:Name="Part_RangePicker"
Orientation="Horizontal"
Grid.Row="1"
Template="{StaticResource
NavigatorTemplate}"
OverlayBrush="{TemplateBinding
OverlayBrush}" Margin="0,0,0,0">
</ControlTemplate>
</Grid.Resources>
<chart:SfRangeNavigator . . .
Template="{StaticResource navigator}">
. . .
</chart:SfRangeNavigator> |
Thanks, that is great.
Exactly what I was trying to do and failing!
Appreciate your assistance very much.
Eric