<Style x:Key="BlueNeedleStyle" TargetType="gauge:Needle"> |
<Setter Property="Location" Value="OverCenter" /> |
<Setter Property="RelativeHeight" Value="0.4" /> |
<Setter Property="RelativeShift" Value="1.4" /> |
<Setter Property="Template" Value="{StaticResource BlueNeedleTemplate}" /> |
<Setter Property="IsAnimated" Value="True" /> |
<Setter Property="Duration" Value="0:0:2" /> |
</Style> |
|
<ControlTemplate x:Key="BlueNeedleTemplate" TargetType="gauge:Needle"> |
<Grid x:Name="PART_Grid" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"> |
<Grid.ColumnDefinitions> |
<ColumnDefinition Width="*" /> |
<!-- Column 0 - tail --> |
<ColumnDefinition Width="*" /> |
<!-- Column 1 - pin point --> |
<ColumnDefinition Width="*" /> |
<!-- Column 2 - arrow --> |
</Grid.ColumnDefinitions> |
<Grid.RowDefinitions> |
<RowDefinition Height="*" /> |
</Grid.RowDefinitions> |
|
<Grid x:Name="PART_Shape" Grid.ColumnSpan="3" Margin="0"> |
<Grid.ColumnDefinitions> |
<ColumnDefinition Width="50*" /> |
<ColumnDefinition Width="50*" /> |
</Grid.ColumnDefinitions> |
<Grid.RowDefinitions> |
<RowDefinition Height="0.4*" /> |
<RowDefinition Height="0.2*" /> |
<RowDefinition Height="0.4*" /> |
</Grid.RowDefinitions> |
|
<Path Grid.Row="1" |
Grid.Column="1" |
Stretch="Fill" |
Fill="{StaticResource Blue_Needle}" |
StrokeThickness="1" Data="M1,0.5 L0,1 L0,0"/> |
|
|
</Grid> |
|
|
<Grid Grid.Column="1"> |
<Grid.RowDefinitions> |
<RowDefinition Height="0.25*" /> |
<RowDefinition Height="0.5*" /> |
<RowDefinition Height="0.25*" /> |
</Grid.RowDefinitions> |
<Grid.ColumnDefinitions> |
<ColumnDefinition Width="0.25*" /> |
<ColumnDefinition Width="0.5*" /> |
<ColumnDefinition Width="0.25*" /> |
</Grid.ColumnDefinitions> |
<Ellipse Grid.Column="1" Grid.Row="1" Stretch="Uniform" |
Fill="{StaticResource BluePointerCap}"/> |
</Grid> |
</Grid> |
</ControlTemplate> |