Sparat innan resan

This commit is contained in:
2022-06-02 23:46:42 +02:00
parent bb5be33235
commit 3d883fdb99
9 changed files with 200 additions and 7 deletions

View File

@ -7,6 +7,7 @@
xmlns:nav="clr-namespace:OemanTrader.WPF.State.Navigators" d:DataContext="{d:DesignInstance Type=nav:Navigator}"
xmlns:vm="clr-namespace:OemanTrader.WPF.ViewModels"
xmlns:converters="clr-namespace:OemanTrader.WPF.Converters"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
<UserControl.Resources>
@ -29,7 +30,9 @@
<ColumnDefinition Width="auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<RadioButton Grid.Column="0" Content="Home" IsChecked="{Binding CurrentViewModel, Converter={StaticResource EqualValueToParameterConverter}, ConverterParameter={x:Type vm:HomeViewModel}}"
<RadioButton Grid.Column="0" Content="Home" IsChecked="{Binding CurrentViewModel,
Converter={StaticResource EqualValueToParameterConverter},
ConverterParameter={x:Type vm:HomeViewModel}}"
Command="{Binding UpdateCurrentViewModelCommand}"
CommandParameter="{x:Static nav:ViewType.Home}" />
<RadioButton Grid.Column="1" Content="Portfolio" Command="{Binding UpdateCurrentViewModelCommand}" CommandParameter="{x:Static nav:ViewType.Portfolio}" />