|
|
|
@ -0,0 +1,60 @@ |
|
|
|
|
<Window x:Class="Tutorial.BasicPlots.SolidGaugeWindow" |
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
|
|
|
|
xmlns:local="clr-namespace:Tutorial.BasicPlots" |
|
|
|
|
xmlns:lvc="clr-namespace:LiveCharts.Wpf;assembly=LiveCharts.Wpf" |
|
|
|
|
mc:Ignorable="d" |
|
|
|
|
Title="SolidGaugeWindow" Height="450" Width="800"> |
|
|
|
|
<Grid> |
|
|
|
|
<Grid.ColumnDefinitions> |
|
|
|
|
<ColumnDefinition Width="*"/> |
|
|
|
|
<ColumnDefinition Width="*"/> |
|
|
|
|
</Grid.ColumnDefinitions> |
|
|
|
|
<Grid.RowDefinitions> |
|
|
|
|
<RowDefinition Height="*"/> |
|
|
|
|
<RowDefinition Height="*"/> |
|
|
|
|
<RowDefinition Height="*"/> |
|
|
|
|
</Grid.RowDefinitions> |
|
|
|
|
|
|
|
|
|
<lvc:Gauge Grid.Column="0" Grid.Row="0" Margin="5" Uses360Mode="True" |
|
|
|
|
From="0" To="100" Value="50"/> |
|
|
|
|
|
|
|
|
|
<lvc:Gauge Grid.Column="0" Grid.Row="1" Margin="5" Uses360Mode="True" |
|
|
|
|
From="0" To="100" Value="50"> |
|
|
|
|
<lvc:Gauge.GaugeRenderTransform> |
|
|
|
|
<TransformGroup> |
|
|
|
|
<RotateTransform Angle="90"/> |
|
|
|
|
<ScaleTransform ScaleX="-1"/> |
|
|
|
|
</TransformGroup> |
|
|
|
|
</lvc:Gauge.GaugeRenderTransform> |
|
|
|
|
</lvc:Gauge> |
|
|
|
|
|
|
|
|
|
<lvc:Gauge Grid.Column="0" Grid.Row="2" Margin="5" Uses360Mode="True" |
|
|
|
|
From="0" To="100" Value="20" |
|
|
|
|
HighFontSize="60" Foreground="White" |
|
|
|
|
InnerRadius="0" GaugeBackground="#BE54A3E9"/> |
|
|
|
|
|
|
|
|
|
<lvc:Gauge Grid.Column="1" Grid.Row="0" Margin="5" Uses360Mode="True" |
|
|
|
|
From="0" To="100" Value="50" |
|
|
|
|
HighFontSize="60" Foreground="#424242" |
|
|
|
|
FromColor="White" ToColor="Black" |
|
|
|
|
InnerRadius="0" GaugeBackground="Transparent"/> |
|
|
|
|
|
|
|
|
|
<lvc:Gauge Grid.Column="1" Grid.Row="1" Margin="5" |
|
|
|
|
From="0" To="100" Value="50"/> |
|
|
|
|
|
|
|
|
|
<lvc:Gauge Grid.Column="1" Grid.Row="2" Margin="5" |
|
|
|
|
From="0" To="100" Value="50" |
|
|
|
|
LabelsVisibility="Collapsed"> |
|
|
|
|
<lvc:Gauge.GaugeActiveFill> |
|
|
|
|
<LinearGradientBrush> |
|
|
|
|
<GradientStop Color="Yellow" Offset="0.0"/> |
|
|
|
|
<GradientStop Color="Orange" Offset="0.5"/> |
|
|
|
|
<GradientStop Color="Red" Offset="1.0"/> |
|
|
|
|
</LinearGradientBrush> |
|
|
|
|
</lvc:Gauge.GaugeActiveFill> |
|
|
|
|
</lvc:Gauge> |
|
|
|
|
</Grid> |
|
|
|
|
</Window> |