<UserControl x:Class="JuliusSweetland.OptiKey.UI.Views.ManagementView"
             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:i="http://schemas.microsoft.com/expression/2010/interactivity"
             xmlns:interactionRequest="http://www.codeplex.com/prism"
             xmlns:triggerActions="clr-namespace:JuliusSweetland.OptiKey.UI.TriggerActions"
             xmlns:management="clr-namespace:JuliusSweetland.OptiKey.UI.Views.Management"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">

    <i:Interaction.Triggers>
        <interactionRequest:InteractionRequestTrigger SourceObject="{Binding ConfirmationRequest, Mode=OneWay}">
            <triggerActions:ConfirmationWindowAction />
        </interactionRequest:InteractionRequestTrigger>
    </i:Interaction.Triggers>
    
    <Grid>
        <Grid.RowDefinitions>
             <RowDefinition Height="*"/>
             <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <TabControl Grid.IsSharedSizeScope="True">
            <TabItem Header="Visuals">
                <management:VisualsView DataContext="{Binding VisualsViewModel, Mode=OneWay}" />
            </TabItem>
            <TabItem Header="Sounds">
                <management:SoundsView DataContext="{Binding SoundsViewModel, Mode=OneWay}" />
            </TabItem>
            <TabItem Header="Words">
                <management:WordsView DataContext="{Binding WordsViewModel, Mode=OneWay}" />
            </TabItem>
            <TabItem Header="Pointing &amp; Selecting">
                <management:PointingAndSelectingView DataContext="{Binding PointingAndSelectingViewModel, Mode=OneWay}" />
            </TabItem>
            <TabItem Header="Dictionary">
                <management:DictionaryView DataContext="{Binding DictionaryViewModel, Mode=OneWay}" />
            </TabItem>
            <TabItem Header="Other">
                <management:OtherView DataContext="{Binding OtherViewModel, Mode=OneWay}" />
            </TabItem>
        </TabControl>
        <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right">
            <Button Command="{Binding OkCommand}" 
                    CommandParameter="{Binding RelativeSource={RelativeSource AncestorType=Window}}" 
                    MinWidth="100" Margin="0,5,5,5" VerticalAlignment="Center">OK</Button>
            <Button Command="{Binding CancelCommand}" 
                    CommandParameter="{Binding RelativeSource={RelativeSource AncestorType=Window}}" 
                    MinWidth="100" Margin="0,5,5,5" VerticalAlignment="Center">Cancel</Button>
        </StackPanel>
    </Grid>
</UserControl>
