Skip to content

Commit

Permalink
Replace completion percentage TextBlock with ProgressBar ShowProgress…
Browse files Browse the repository at this point in the history
…Text and ProgressTextFormat
  • Loading branch information
Neakita committed Sep 30, 2023
1 parent cd76c45 commit 410a875
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SightKeeper.Avalonia/Views/Tabs/TrainingTab.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@

<ProgressBar Value="{Binding Completion^}"
Maximum="1"
IsIndeterminate="{Binding !Completion^}"/>

<TextBlock Text="{Binding Completion^, StringFormat=P}"/>
IsIndeterminate="{Binding !Completion^}"
ShowProgressText="{Binding !!Completion^}"
ProgressTextFormat="{}{0:P}"/> <!--ProgressTextFormat="P" displays not expected percent number, but just "P" symbol-->

</StackPanel>
</StackPanel>
Expand Down

0 comments on commit 410a875

Please sign in to comment.