26 lines
2.2 KiB
XML
26 lines
2.2 KiB
XML
<UserControl x:Class="SewerStammGen.Views.Controls.UCMainWindowNavigationBar"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:nav="clr-namespace:SewerStammGen.Enum"
|
|
xmlns:viewmodel="clr-namespace:SewerStammGen.ViewModel"
|
|
xmlns:converter="clr-namespace:SewerStammGen.Views.Converters"
|
|
xmlns:local="clr-namespace:SewerStammGen.Views.Controls"
|
|
mc:Ignorable="d"
|
|
d:DataContext="{d:DesignInstance Type=viewmodel:MainWindowViewModel}"
|
|
d:DesignHeight="450" d:DesignWidth="800">
|
|
<UserControl.Resources>
|
|
<converter:EqualValueToParameterConverter x:Key="EqualValueToParameterConverter" />
|
|
</UserControl.Resources>
|
|
<Grid>
|
|
<StackPanel>
|
|
<RadioButton Content="Home" IsChecked="{Binding CurrentViewModel, Mode=OneWay, Converter={StaticResource EqualValueToParameterConverter}, ConverterParameter={x:Type viewmodel:HomeViewModel}}" Command="{Binding UpdateCurrentViewModelCommand}" CommandParameter="{x:Static nav:EMainWindowViewType.Home}" Style="{StaticResource ToggleButtonList}" />
|
|
<RadioButton IsEnabled="False" Content="Projekte" Command="{Binding UpdateCurrentViewModelCommand}" CommandParameter="{x:Static nav:EMainWindowViewType.Projects}" Style="{StaticResource ToggleButtonList}" />
|
|
<RadioButton Content="Schächte" IsChecked="{Binding CurrentViewModel, Mode=OneWay, Converter={StaticResource EqualValueToParameterConverter}, ConverterParameter={x:Type viewmodel:EditManHoleViewModel}}" Command="{Binding UpdateCurrentViewModelCommand}" CommandParameter="{x:Static nav:EMainWindowViewType.EditSchacht}" Style="{StaticResource ToggleButtonList}" />
|
|
<RadioButton Content="Kanäle" Command="{Binding UpdateCurrentViewModelCommand}" CommandParameter="{x:Static nav:EMainWindowViewType.Sewer}" Style="{StaticResource ToggleButtonList}" />
|
|
</StackPanel>
|
|
|
|
</Grid>
|
|
</UserControl>
|