diff options
| author | Victoria Plitt <Victoria.Plitt@twine-s.com> | 2023-04-23 12:00:02 +0300 |
|---|---|---|
| committer | Victoria Plitt <Victoria.Plitt@twine-s.com> | 2023-04-23 12:00:02 +0300 |
| commit | f86efbca4aac00a1a4e6d290feca1a0236c2d828 (patch) | |
| tree | e83fce8f7bf2da088a12bc6fa3b18ff32ac2377d /Software/Visual_Studio/Tango.Touch/Controls/TouchArcProgress.xaml | |
| parent | 82f5e5a9c43641b473e54d1c0534f05bb8190f11 (diff) | |
| download | Tango-f86efbca4aac00a1a4e6d290feca1a0236c2d828.tar.gz Tango-f86efbca4aac00a1a4e6d290feca1a0236c2d828.zip | |
ArcProgress Control.
Diffstat (limited to 'Software/Visual_Studio/Tango.Touch/Controls/TouchArcProgress.xaml')
| -rw-r--r-- | Software/Visual_Studio/Tango.Touch/Controls/TouchArcProgress.xaml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.Touch/Controls/TouchArcProgress.xaml b/Software/Visual_Studio/Tango.Touch/Controls/TouchArcProgress.xaml new file mode 100644 index 000000000..518b3632c --- /dev/null +++ b/Software/Visual_Studio/Tango.Touch/Controls/TouchArcProgress.xaml @@ -0,0 +1,24 @@ +<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:shapes="clr-namespace:Tango.SharedUI.Shapes;assembly=Tango.SharedUI" + xmlns:local="clr-namespace:Tango.Touch.Controls"> + <ResourceDictionary.MergedDictionaries> + <ResourceDictionary Source="../Resources/Colors.xaml" /> + </ResourceDictionary.MergedDictionaries> + + <Style TargetType="{x:Type local:TouchArcProgress}"> + <Setter Property="Background" Value="{StaticResource TangoDividerBrush}"></Setter> + <Setter Property="Foreground" Value="{StaticResource TangoPrimaryAccentBrush}"></Setter> + <Setter Property="Template"> + <Setter.Value> + <ControlTemplate TargetType="{x:Type local:TouchArcProgress}"> + <Grid> + <shapes:Arc x:Name="PART_ArcBase" Stroke="{TemplateBinding Background}" StrokeThickness="{TemplateBinding RingThickness}" OriginRotationDegrees="90" Direction="Clockwise"/> + <shapes:Arc x:Name="PART_ArcValue" Stroke="{TemplateBinding Foreground}" StrokeThickness="{TemplateBinding RingThickness}" OriginRotationDegrees="90" Direction="Clockwise"/> + </Grid> + </ControlTemplate> + </Setter.Value> + </Setter> + </Style> + +</ResourceDictionary>
\ No newline at end of file |
