<UserControl x:Class="VIZ.Package.Module.HotKeySettingView"
             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:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
             xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
             xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
             xmlns:dxmvvm="http://schemas.devexpress.com/winfx/2008/xaml/mvvm"
             xmlns:dxi="http://schemas.devexpress.com/winfx/2008/xaml/core/internal"
             xmlns:dxgt="http://schemas.devexpress.com/winfx/2008/xaml/grid/themekeys"
             xmlns:fcore="clr-namespace:VIZ.Framework.Core;assembly=VIZ.Framework.Core"
             xmlns:fcommon="clr-namespace:VIZ.Framework.Common;assembly=VIZ.Framework.Common"
             xmlns:resource="clr-namespace:VIZ.Package.Module.Resource;assembly=VIZ.Package.Module.Resource"
             xmlns:local="clr-namespace:VIZ.Package.Module"
             d:Background="White"
             d:DataContext="{d:DesignInstance Type=local:HotKeySettingViewModel}" 
             mc:Ignorable="d" 
             d:DesignHeight="800" d:DesignWidth="1000">

    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/VIZ.Framework.Common.Resource;component/Style/GridSplitter/GridSplitter_None.xaml"></ResourceDictionary>
            </ResourceDictionary.MergedDictionaries>
            <resource:RowHandleConverter x:Key="RowHandleConverter"></resource:RowHandleConverter>
            <fcore:Bool2StringConverter x:Key="Bool2StringConverter" TrueResult="默认"></fcore:Bool2StringConverter>
        </ResourceDictionary>
    </UserControl.Resources>

    <dxmvvm:Interaction.Behaviors>
        <dxmvvm:EventToCommand EventName="Loaded" Command="{Binding Path=LoadedCommand}"></dxmvvm:EventToCommand>
    </dxmvvm:Interaction.Behaviors>

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
        </Grid.RowDefinitions>
        <GroupBox Header="播出快捷键" Margin="10,10,10,5" Padding="5">
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="160"></ColumnDefinition>
                    <ColumnDefinition Width="*"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="40"></RowDefinition>
                    <RowDefinition Height="40"></RowDefinition>
                    <RowDefinition Height="40"></RowDefinition>
                    <RowDefinition Height="40"></RowDefinition>
                    <RowDefinition Height="40"></RowDefinition>
                    <RowDefinition Height="40"></RowDefinition>
                    <RowDefinition Height="40"></RowDefinition>
                    <RowDefinition Height="40"></RowDefinition>
                </Grid.RowDefinitions>
                <!-- Take -->
                <TextBlock Text="Take:" VerticalAlignment="Center" HorizontalAlignment="Right"></TextBlock>
                <fcommon:HotkeyBox Grid.Column="1" Height="30" Margin="15,0,10,0"
                                   Hotkey="{Binding Path=Take,Mode=TwoWay}"></fcommon:HotkeyBox>
                <!-- Continue -->
                <TextBlock Text="Continue:" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1"></TextBlock>
                <fcommon:HotkeyBox Grid.Column="1" Height="30" Grid.Row="1" Margin="15,0,10,0"
                                   Hotkey="{Binding Path=TakeContinue,Mode=TwoWay}"></fcommon:HotkeyBox>
                <!-- TakeOut -->
                <TextBlock Text="TakeOut:" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2"></TextBlock>
                <fcommon:HotkeyBox Grid.Column="1" Height="30" Grid.Row="2" Margin="15,0,10,0"
                                   Hotkey="{Binding Path=TakeOut,Mode=TwoWay}"></fcommon:HotkeyBox>
                <!-- Update -->
                <TextBlock Text="Update:" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3"></TextBlock>
                <fcommon:HotkeyBox Grid.Column="1" Height="30" Grid.Row="3" Margin="15,0,10,0"
                                   Hotkey="{Binding Path=TakeUpdate,Mode=TwoWay}"></fcommon:HotkeyBox>
                <!-- 打开下一个页 -->
                <TextBlock Text="打开下一页:" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="4"></TextBlock>
                <fcommon:HotkeyBox Grid.Column="1" Height="30" Grid.Row="4" Margin="15,0,10,0"
                                   Hotkey="{Binding Path=OpenNextPage,Mode=TwoWay}"></fcommon:HotkeyBox>
                <!-- Take当前页打开下一个页 -->
                <TextBlock Text="Take当前页打开下一页:" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="5"></TextBlock>
                <fcommon:HotkeyBox Grid.Column="1" Height="30" Grid.Row="5" Margin="15,0,10,0"
                                   Hotkey="{Binding Path=TakeAndOpenNextPage,Mode=TwoWay}"></fcommon:HotkeyBox>
                <!-- 打开并Take -->
                <TextBlock Text="打开并Take选中页:" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="6"></TextBlock>
                <fcommon:HotkeyBox Grid.Column="1" Height="30" Grid.Row="6" Margin="15,0,10,0"
                                   Hotkey="{Binding Path=OpenAndTakeSelectedPage,Mode=TwoWay}"></fcommon:HotkeyBox>
                
                <!--清屏快捷键-->
                <TextBlock Text="清屏快捷键：" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="7"/>

                <fcommon:HotkeyBox Grid.Column="1" Height="30" Grid.Row="7" Margin="15,0,10,0"
                                   Hotkey="{Binding Path=ClearSceen,Mode=TwoWay}"></fcommon:HotkeyBox>

            </Grid>
        </GroupBox>
        <GroupBox Header="其他快捷键" Margin="10,5,10,10" Padding="5" Grid.Row="1">
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="160"></ColumnDefinition>
                    <ColumnDefinition Width="*"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="40"></RowDefinition>
                </Grid.RowDefinitions>
                <!-- 保存当前打开的页及项目 -->
                <TextBlock Text="保存当前打开的页及项目:" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="0"></TextBlock>
                <fcommon:HotkeyBox IsEnabled="False" Grid.Column="1" Height="30" Grid.Row="0" Margin="15,0,10,0"
                                   Hotkey="{Binding Path=SaveOpendPageOrTemplateAndProject,Mode=TwoWay}"></fcommon:HotkeyBox>
            </Grid>
        </GroupBox>
    </Grid>
</UserControl>