Skip to content

Commit

Permalink
feat(toolbar): update ListBox binding for whiteboard mode
Browse files Browse the repository at this point in the history
Changed the `SelectedIndex` binding of the `ListBox` from `SelectedCanvasMode` to `SelectedWhiteBoardMode`. This update aligns the `ListBox` functionality with the new whiteboard feature, enhancing user interaction with the application.
  • Loading branch information
realybin committed Dec 23, 2024
1 parent bad0470 commit f820f10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SketchNow/Views/ToolBarView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
</ListBoxItem>
</ListBox>
<ListBox Margin="2"
SelectedIndex="{Binding SelectedCanvasMode, Converter={StaticResource EnumToIndexConverter}}"
SelectedIndex="{Binding SelectedWhiteBoardMode, Converter={StaticResource EnumToIndexConverter}}"
Style="{StaticResource MaterialDesignToolToggleListBox}">
<ListBoxItem>
<controls:IconWithText Kind="DesktopWindows"
Expand Down

0 comments on commit f820f10

Please sign in to comment.