Skip to content

Commit

Permalink
Merge pull request #7288 from Abdesol/master
Browse files Browse the repository at this point in the history
Progress Bar progress text implementation in FluentTheme
  • Loading branch information
maxkatz6 authored and danwalmsley committed Jan 24, 2022
1 parent 0de5ae7 commit 7c637dc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Avalonia.Themes.Fluent/Controls/ProgressBar.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@
<Border x:Name="IndeterminateProgressBarIndicator" CornerRadius="{TemplateBinding CornerRadius}" Margin="{TemplateBinding Padding}" Background="{TemplateBinding Foreground}" />
<Border x:Name="IndeterminateProgressBarIndicator2" CornerRadius="{TemplateBinding CornerRadius}" Margin="{TemplateBinding Padding}" Background="{TemplateBinding Foreground}" />
</Panel>
</Panel>
<LayoutTransformControl x:Name="PART_LayoutTransformControl" HorizontalAlignment="Center" VerticalAlignment="Center" IsVisible="{Binding ShowProgressText, RelativeSource={RelativeSource TemplatedParent}}">
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseHighBrush}" Text="{Binding Value, RelativeSource={RelativeSource TemplatedParent}, StringFormat={}{0:0}%}" />
</LayoutTransformControl>
</Panel>
</Border>
</ControlTemplate>
</Setter>
Expand Down

0 comments on commit 7c637dc

Please sign in to comment.