20220510_191_upperpc/AutomaticApp/Controls/CircularProgressBar.xaml

21 lines
1.3 KiB
Plaintext
Raw Permalink Normal View History

2023-07-27 02:57:34 +00:00
<UserControl x:Class="AutomaticApp.Controls.CircularProgressBar"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:AutomaticApp.Controls"
mc:Ignorable="d"
d:DesignHeight="80" d:DesignWidth="80">
<Grid Name="LayoutRoot" Height="{Binding RelativeSource={RelativeSource Self},Path=ActualWidth}">
<Ellipse Width="{Binding ElementName=LayoutRoot,Path=ActualWidth}"
Height="{Binding ElementName=LayoutRoot,Path=ActualWidth}"
StrokeThickness="8"
Stroke="#22FFFFFF"/>
<Path Name="path" Stroke="Orange" StrokeThickness="7" StrokeStartLineCap="Round" StrokeEndLineCap="Round"/>
<TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White">
<Run Text="{Binding Value,RelativeSource={RelativeSource AncestorType=UserControl},StringFormat={}{0:###.00}}" FontSize="22" />
<Run Text="%"/>
</TextBlock>
</Grid>
</UserControl>