| 1 | <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 2 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 3 | xmlns:local="clr-namespace:UI.Controls.Charts" |
| 4 | xmlns:base="clr-namespace:UI.Controls.Base"> |
| 5 | <Style TargetType="{x:Type local:ChartsItemTypeRadar}"> |
| 6 | <Setter Property="SnapsToDevicePixels" |
| 7 | Value="true" /> |
| 8 | |
| 9 | <Setter Property="Background" Value="Transparent"/> |
| 10 | |
| 11 | |
| 12 | <Setter Property="Template"> |
| 13 | <Setter.Value> |
| 14 | <ControlTemplate TargetType="{x:Type local:ChartsItemTypeRadar}"> |
| 15 | <Grid Background="{TemplateBinding Background}"> |
| 16 | <Grid x:Name="Normal"> |
| 17 | |
| 18 | <Canvas x:Name="Canvas" RenderTransformOrigin=".5,.5"> |
| 19 | <Canvas.RenderTransform> |
| 20 | <RotateTransform Angle="-90"></RotateTransform> |
| 21 | </Canvas.RenderTransform> |
| 22 | </Canvas> |
| 23 | |
| 24 | <Rectangle |
| 25 | x:Name="ValueBlockObj" |
| 26 | Width="20" |
| 27 | Height="20" |
| 28 | |
| 29 | HorizontalAlignment="Center" |
| 30 | VerticalAlignment="Center" |
| 31 | Margin="0" |
| 32 | RenderTransformOrigin="0.5,0.5" |
| 33 | |
| 34 | > |
| 35 | <Rectangle.Effect> |
| 36 | <BlurEffect RenderOptions.BitmapScalingMode="LowQuality" Radius="35" RenderingBias="Performance"/> |
| 37 | </Rectangle.Effect> |
| 38 | <Rectangle.Fill> |
| 39 | <LinearGradientBrush RenderOptions.BitmapScalingMode="LowQuality" EndPoint="2,1" StartPoint="-2,0"> |
| 40 | <GradientStop Color="White"/> |
| 41 | <GradientStop Color="#ff305b" Offset="1"/> |
| 42 | </LinearGradientBrush> |
| 43 | </Rectangle.Fill> |
| 44 | <Rectangle.RenderTransform> |
| 45 | <ScaleTransform ScaleX="3" ScaleY="3" CenterX="0" CenterY="0"/> |
| 46 | </Rectangle.RenderTransform> |
| 47 | </Rectangle> |
| 48 | </Grid> |
| 49 | <Grid x:Name="Loading"> |
| 50 | </Grid> |
| 51 | </Grid> |
| 52 | |
| 53 | |
| 54 | |
| 55 | <ControlTemplate.Triggers> |
| 56 | <Trigger Property="IsLoading" Value="True"> |
| 57 | <Setter TargetName="Loading" Property="Visibility" Value="Visible"/> |
| 58 | <Setter TargetName="Normal" Property="Visibility" Value="Hidden"/> |
| 59 | </Trigger> |
| 60 | </ControlTemplate.Triggers> |
| 61 | </ControlTemplate> |
| 62 | </Setter.Value> |
| 63 | </Setter> |
| 64 | </Style> |
| 65 | </ResourceDictionary> |