<dx:ThemedWindow x:Class="VIZ.Package.Module.PageGroupRenameWindow"
                 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:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
                 xmlns:fcore="clr-namespace:VIZ.Framework.Core;assembly=VIZ.Framework.Core"
                 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                 xmlns:local="clr-namespace:VIZ.Package.Module"
                 d:DataContext="{d:DesignInstance Type=local:PageGroupRenameViewModel}" 
                 mc:Ignorable="d" WindowStartupLocation="CenterScreen"
                 Title="播出单命名" Height="160" Width="400">

    <dx:ThemedWindow.Resources>
        <fcore:StringNotNull2BoolConverter x:Key="StringNotNull2BoolConverter"></fcore:StringNotNull2BoolConverter>
    </dx:ThemedWindow.Resources>

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"></RowDefinition>
            <RowDefinition Height="*"></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="120"></ColumnDefinition>
            <ColumnDefinition Width="*"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <TextBlock Text="播出单名称："
                   VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,0,10,0"></TextBlock>
        <TextBox Grid.Column="1" Height="30" VerticalAlignment="Center" Margin="0,0,10,0"
                 TextWrapping="NoWrap" AcceptsReturn="False" Padding="3" VerticalContentAlignment="Center"
                 Text="{Binding Path=PageGroupName,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBox>
        <StackPanel Grid.Row="1" Grid.Column="1" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Right">
            <Button Content="确定" Width="80" Height="30" Margin="10" Command="{Binding EnterCommand}"
                    IsEnabled="{Binding Path=PageGroupName,Converter={StaticResource StringNotNull2BoolConverter},Mode=OneWay}"></Button>
            <Button Content="取消" Width="80" Height="30" Margin="10" Command="{Binding CancelCommand}"></Button>
        </StackPanel>
    </Grid>
</dx:ThemedWindow>
