<Window xmlns="https://github.com/avaloniaui"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:vm="clr-namespace:PSCHelpdesk.ViewModels"
        xmlns:vs="clr-namespace:PSCHelpdesk.Shared.Menu;assembly=Shared"
        xmlns:views="clr-namespace:PSCHelpdesk.Views"
        mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
        x:Class="PSCHelpdesk.Views.MainWindow"
        Icon="/Assets/avalonia-logo.ico"
        x:DataType="vm:MainWindowViewModel"
        Title="PSCHelpdesk"
        x:Name="MainWindowView">
        <Design.DataContext>
                <vm:MainWindowViewModel/>
        </Design.DataContext>
        <DockPanel>
                <Menu DockPanel.Dock="Top">
                        <MenuItem Header="_File">
                                <MenuItem Click="Settings_OnClick" Header="_Settings"/>
                                <Separator/>
                                <MenuItem Click="Exit_OnClick" Header="_Exit"/>
                        </MenuItem>
                        <MenuItem Header="_Module" ItemsSource="{Binding MenuItems}" Classes="SubItems">
                                <MenuItem.Styles>
                                        <Style Selector="MenuItem.SubItems MenuItem" x:DataType="vs:Item">
                                                <Setter Property="Header" Value="{Binding Header  }"/>
                                                <Setter Property="ItemsSource" Value="{Binding Items}"/>
                                                <Setter Property="Command" Value="{Binding Command }"></Setter>
                                                <Setter Property="CommandParameter" Value="{Binding Header}"></Setter>
                                        </Style>
                                </MenuItem.Styles>
                                <!--<MenuItem.ItemTemplate>
                                        <DataTemplate>
                                                <MenuItem Header="{Binding Header}" Command="{Binding Command }" CommandParameter="{Binding Header}"/>
                                        </DataTemplate>
                                </MenuItem.ItemTemplate>-->
                        </MenuItem>
                </Menu>
                <ContentControl Content="{Binding ContentDisplay}"></ContentControl>
                <!--<views:ContentDisplay SelectedItem="{Binding SelectedItem}"/>-->
        </DockPanel>
</Window>
