<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">
       <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>
               </Menu>
               <TabControl ItemsSource="{Binding TabItems}">
                       <TabControl.ItemTemplate>
                               <DataTemplate DataType="vm:TabItemViewModel">
                                       <TextBlock Text="{Binding Header}" />
                               </DataTemplate>
                       </TabControl.ItemTemplate>
                       <TabControl.ContentTemplate>
                               <DataTemplate DataType="vm:TabItemViewModel">
                                       <DockPanel>
                                               <ContentControl Content="{Binding Content}" />
                                       </DockPanel>
                               </DataTemplate>
                       </TabControl.ContentTemplate>
               </TabControl>
       </DockPanel>
                <!--<ContentControl ContentTemplate="" Content="{Binding ContentDisplay}"></ContentControl>-->
                
                <!--<views:ContentDisplay SelectedItem="{Binding SelectedItem}"></views:ContentDisplay>-->
</Window>
