Bind item properties
MODIFY
WalletWasabi.Fluent/Views/NavBar/NavBar.axaml
WalletWasabi.Fluent/Views/NavBar/NavBar.axaml
<TextBlock Text="Wasabi Wallet" Classes="h6" VerticalAlignment="Center" FontWeight="SemiBold" Margin="55 0 0 0" />
</Panel>
</Border>
- <c:NavBarListBox Items="{Binding TopItems}" SelectedItem="{Binding SelectedItem}" />
+ <c:NavBarListBox Items="{Binding TopItems}" SelectedItem="{Binding SelectedItem, Mode=TwoWay}">
+ <c:NavBarListBox.Styles>
+ <Style Selector="c|NavBarItem">
+ <Setter Property="IsSelected" Value="{Binding IsSelected, Mode=TwoWay}" />
+ </Style>
+ </c:NavBarListBox.Styles>
+ </c:NavBarListBox>
<Separator />
</StackPanel>
<StackPanel DockPanel.Dock="Bottom">
<Separator />
- <c:NavBarListBox Classes="bottom" Items="{Binding BottomItems}" SelectedItem="{Binding SelectedItem}" >
+ <c:NavBarListBox Classes="bottom" Items="{Binding BottomItems}" SelectedItem="{Binding SelectedItem, Mode=TwoWay}" >
<c:NavBarListBox.Styles>
<Style Selector="c|NavBarItem">
<Setter Property="IndicatorOrientation" Value="Horizontal" />
+ <Setter Property="IsSelected" Value="{Binding IsSelected, Mode=TwoWay}" />
</Style>
</c:NavBarListBox.Styles>
</c:NavBarListBox>
</StackPanel>
- <c:NavBarTreeView Items="{Binding Items}" SelectedItem="{Binding SelectedItem}" ScrollViewer.HorizontalScrollBarVisibility="Disabled">
+ <c:NavBarTreeView Items="{Binding Items}" SelectedItem="{Binding SelectedItem, Mode=TwoWay}" ScrollViewer.HorizontalScrollBarVisibility="Disabled">
+ <c:NavBarTreeView.Styles>
+ <Style Selector="c|NavBarTreeItem">
+ <Setter Property="IsSelected" Value="{Binding IsSelected, Mode=TwoWay}" />
+ </Style>
+ </c:NavBarTreeView.Styles>
<c:NavBarTreeView.ItemTemplate>
<TreeDataTemplate ItemsSource="{Binding Items}">
<Panel>

Bind item properties