Skip to content

Commit

Permalink
Hide ring when value is at 0 (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
NotYoojun committed Aug 25, 2024
1 parent f55ae69 commit 257a380
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,19 @@
StrokeStartLineCap="Round"
StrokeThickness="{TemplateBinding StrokeThickness}" />
<!-- Progress Ring -->
<Path
<Path x:Name="Path_Ring"
Data="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=TemplateSettings.RingPath}"
Fill="Transparent"
Stroke="{TemplateBinding Foreground}"
StrokeEndLineCap="Round"
StrokeStartLineCap="Round"
StrokeThickness="{TemplateBinding StrokeThickness}" />
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="Value" Value="0">
<Setter TargetName="Path_Ring" Property="Visibility" Value="Hidden"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
Expand Down

0 comments on commit 257a380

Please sign in to comment.