<UserControl x:Class="MainShell.ParaSetting.View.ProcessParameterSettingView"
             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:mw="http://www.maxwell-gp.com/"
             mc:Ignorable="d"
             d:DesignHeight="450" d:DesignWidth="800">
    <Grid Background="{StaticResource ProcessPageBackgroundBrush}">
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="60"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="220"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>

        <Border Grid.Row="0" Grid.Column="0" Margin="8,8,6,8" Background="{StaticResource ProcessCardBackgroundBrush}" BorderBrush="{StaticResource ProcessCardBorderBrush}" BorderThickness="1" CornerRadius="6">
            <ListBox Margin="6"
                     ItemsSource="{Binding ProcessMenuItemWraps}"
                     SelectedItem="{Binding SelectedProcessMenuItem, Mode=TwoWay}"
                     DisplayMemberPath="Header"
                     Style="{StaticResource ProcessNavigationListBoxStyle}"/>
        </Border>

        <Border Grid.Row="0" Grid.Column="1" Margin="6,8,8,8" Background="{StaticResource ProcessCardBackgroundBrush}" BorderBrush="{StaticResource ProcessCardBorderBrush}" BorderThickness="1" CornerRadius="6">
            <ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled" Padding="8">
                <ContentControl HorizontalAlignment="Stretch" mw:View.Model="{Binding CurrentScreen}"/>
            </ScrollViewer>
        </Border>

        <Button Grid.Row="1" Grid.Column="1" Margin="0,6,8,0" Content="{DynamicResource Save}" Click="{mw:Action BtnSave}" Style="{StaticResource SaveButtonStyle}" HorizontalAlignment="Right"/>
    </Grid>
</UserControl>