mirror of
https://gitcode.com/gh_mirrors/se/Semi.Avalonia
synced 2026-04-22 01:16:35 +08:00
Merge pull request #614 from 763305292/main
Add the ability to edit ring progress bar's thickness.
This commit is contained in:
@@ -25,6 +25,7 @@
|
|||||||
Width="100"
|
Width="100"
|
||||||
Height="100"
|
Height="100"
|
||||||
IsIndeterminate="True"
|
IsIndeterminate="True"
|
||||||
|
BorderThickness="16"
|
||||||
Maximum="{Binding #slider.Maximum}"
|
Maximum="{Binding #slider.Maximum}"
|
||||||
Minimum="{Binding #slider.Minimum}"
|
Minimum="{Binding #slider.Minimum}"
|
||||||
Theme="{DynamicResource ProgressRing}"
|
Theme="{DynamicResource ProgressRing}"
|
||||||
|
|||||||
@@ -344,6 +344,7 @@
|
|||||||
<ControlTheme x:Key="ProgressRing" TargetType="ProgressBar">
|
<ControlTheme x:Key="ProgressRing" TargetType="ProgressBar">
|
||||||
<Setter Property="Foreground" Value="{DynamicResource ProgressBarIndicatorBrush}" />
|
<Setter Property="Foreground" Value="{DynamicResource ProgressBarIndicatorBrush}" />
|
||||||
<Setter Property="Background" Value="{DynamicResource ProgressBarBackground}" />
|
<Setter Property="Background" Value="{DynamicResource ProgressBarBackground}" />
|
||||||
|
<Setter Property="BorderThickness" Value="6" />
|
||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
<ControlTemplate TargetType="ProgressBar">
|
<ControlTemplate TargetType="ProgressBar">
|
||||||
<Panel>
|
<Panel>
|
||||||
@@ -355,7 +356,7 @@
|
|||||||
Stroke="{TemplateBinding Background}"
|
Stroke="{TemplateBinding Background}"
|
||||||
StrokeJoin="Round"
|
StrokeJoin="Round"
|
||||||
StrokeLineCap="Round"
|
StrokeLineCap="Round"
|
||||||
StrokeThickness="6"
|
StrokeThickness="{Binding BorderThickness.Left, RelativeSource={RelativeSource TemplatedParent}}"
|
||||||
SweepAngle="360" />
|
SweepAngle="360" />
|
||||||
<Arc
|
<Arc
|
||||||
Name="Indicator"
|
Name="Indicator"
|
||||||
@@ -364,7 +365,7 @@
|
|||||||
Stroke="{TemplateBinding Foreground}"
|
Stroke="{TemplateBinding Foreground}"
|
||||||
StrokeJoin="Round"
|
StrokeJoin="Round"
|
||||||
StrokeLineCap="Round"
|
StrokeLineCap="Round"
|
||||||
StrokeThickness="6"
|
StrokeThickness="{Binding BorderThickness.Left, RelativeSource={RelativeSource TemplatedParent}}"
|
||||||
SweepAngle="{TemplateBinding Percentage,
|
SweepAngle="{TemplateBinding Percentage,
|
||||||
Converter={StaticResource AngleConverter}}" />
|
Converter={StaticResource AngleConverter}}" />
|
||||||
<Arc
|
<Arc
|
||||||
@@ -375,7 +376,7 @@
|
|||||||
Stroke="{TemplateBinding Foreground}"
|
Stroke="{TemplateBinding Foreground}"
|
||||||
StrokeJoin="Round"
|
StrokeJoin="Round"
|
||||||
StrokeLineCap="Round"
|
StrokeLineCap="Round"
|
||||||
StrokeThickness="6"
|
StrokeThickness="{Binding BorderThickness.Left, RelativeSource={RelativeSource TemplatedParent}}"
|
||||||
SweepAngle="{TemplateBinding Percentage,
|
SweepAngle="{TemplateBinding Percentage,
|
||||||
Converter={StaticResource AngleConverter}}" />
|
Converter={StaticResource AngleConverter}}" />
|
||||||
<TextBlock
|
<TextBlock
|
||||||
|
|||||||
Reference in New Issue
Block a user