<UserControl x:Class="MainShell.DeviceMaintance.View.DeviceMaintanceView"
             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:local="clr-namespace:MainShell.DeviceMaintance.View"
             xmlns:mw="http://www.maxwell-gp.com/"
             mc:Ignorable="d" 
             d:DesignHeight="450" d:DesignWidth="800">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <Grid Margin="-40,0,0,0" Grid.Column="0">
            <Grid.RowDefinitions>
                <RowDefinition/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <mw:SideMenu ItemsSource="{Binding MenuItemWraps}"
                         SelectedItem="{Binding SelectedMenuItem, Mode=TwoWay}"  
                      Grid.Row ="0" Width="180"
                      ExpandMode="Accordion"
                      AutoSelect="True"
                      >
                <mw:SideMenu.ItemContainerStyle>
                    <Style TargetType="{x:Type mw:SideMenuItem}" BasedOn="{StaticResource SideMenuItemHeaderAccordionBaseStyle}">
                        <Setter Property="Header" Value="{Binding Header}" />
                        <Setter Property="Tag" Value="{Binding Tag}" />
                    </Style>
                </mw:SideMenu.ItemContainerStyle>
            </mw:SideMenu>

        </Grid>

        <ContentControl Margin="5,0" Grid.Column="1" mw:View.Model="{Binding CurrentScreen}"/>
    </Grid>
</UserControl>
