Skip to content

Commit

Permalink
feat: simplify page navigation display
Browse files Browse the repository at this point in the history
Updated the `TextBlock` in the navigation `Button` to present the selected page index and total pages in a more concise format ("X / Y") instead of the previous verbose format ("At X of Y Pages"). This change improves clarity and reduces visual clutter in the user interface.
  • Loading branch information
realybin committed Dec 25, 2024
1 parent a61fa9f commit d3d0480
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SketchNow/Views/PageNavigationView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<Button Width="200"
Height="48"
Style="{StaticResource MaterialDesignFlatButton}">
<TextBlock VerticalAlignment="Center"><Run Text="At " /><Run Text=" " /><Run Text="{Binding CanvasPages.SelectedIndex, Mode=OneWay}" /><Run Text=" " /><Run Text="of " /><Run Text=" " /><Run Text="{Binding CanvasPages.Pages.Count, ConverterParameter=-1, Converter={StaticResource MathAddConverter}, Mode=OneWay}" /><Run Text=" " /><Run Text=" Pages" /></TextBlock>
<TextBlock VerticalAlignment="Center"><Run Text="{Binding CanvasPages.SelectedIndex, Mode=OneWay}" /><Run Text=" / " /><Run Text="{Binding CanvasPages.Pages.Count, ConverterParameter=-1, Converter={StaticResource MathAddConverter}, Mode=OneWay}" /></TextBlock>
</Button>
<Button Height="48"
Command="{Binding CanvasPages.AddPageCommand}"
Expand Down

0 comments on commit d3d0480

Please sign in to comment.