<UserControl x:Class="PDF_Office.Views.PropertyPanel.AnnotPanel.CustomCreateDialog"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:customcontrol="clr-namespace:PDF_Office.CustomControl"
             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:PDF_Office.Views.PropertyPanel.AnnotPanel" 
             xmlns:cus="clr-namespace:PDF_Office.CustomControl"
             xmlns:annotpanel="clr-namespace:PDF_Office.ViewModels.PropertyPanel.AnnotPanel"
             xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
             xmlns:dataconvert="clr-namespace:PDF_Office.DataConvert"
             d:DataContext="{d:DesignInstance Type=annotpanel:CustomCreateDialogViewModel}"
             xmlns:prism="http://prismlibrary.com/"
             prism:Dialog.WindowStyle="{StaticResource DialogWindowStyle}"
             mc:Ignorable="d" 
             Width="468"
             Height="406"
             >

    <UserControl.Resources>
        <Style x:Key="MyToolTipStyle" TargetType="ToolTip">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate>
                        <StackPanel>
                            <Path HorizontalAlignment="Center" VerticalAlignment="Center" Data="M 6 0 L 0 6 L 12 6 Z" Fill="#E6333333" Margin="0,0,10,0"/>
                            <Border CornerRadius="8" Background="#E6333333" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                                <TextBlock  Text="{TemplateBinding ContentControl.Content}" Foreground="White"  LineHeight="20" Margin="6"/>
                            </Border>
                        </StackPanel>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <PathGeometry x:Key="Ic_AddButtonPath" Figures="M8.5,2.5 L8.5,7.5 L13.5,7.5 L13.5,8.5 L8.5,8.5 L8.5,13.5 L7.5,13.5 L7.5,8.5 L2.5,8.5 L2.5,7.5 L7.5,7.5 L7.5,2.5 L8.5,2.5 Z"/>
        <PathGeometry x:Key="Ic_LeftLowerCasePath" Figures="M16.5234 20.6406C17.6484 20.6406 18.5391 20.1562 19.0391 19.2969H19.1719V20.5H20.8516V14.6953C20.8516 12.9141 19.6484 11.8516 17.5156 11.8516C15.5859 11.8516 14.25 12.7812 14.0469 14.1719L14.0391 14.2266H15.6719L15.6797 14.1953C15.8828 13.5938 16.5 13.25 17.4375 13.25C18.5859 13.25 19.1719 13.7656 19.1719 14.6953V15.4453L16.875 15.5781C14.8516 15.7031 13.7109 16.5859 13.7109 18.1016V18.1172C13.7109 19.6562 14.9062 20.6406 16.5234 20.6406ZM15.3984 18.0469V18.0312C15.3984 17.2656 15.9297 16.8438 17.1016 16.7734L19.1719 16.6406V17.3672C19.1719 18.4609 18.2422 19.2891 16.9766 19.2891C16.0625 19.2891 15.3984 18.8281 15.3984 18.0469Z"/>
        <PathGeometry x:Key="Ic_RightLowerCasePath" Figures="M14.5234 20.6406C15.6484 20.6406 16.5391 20.1562 17.0391 19.2969H17.1719V20.5H18.8516V14.6953C18.8516 12.9141 17.6484 11.8516 15.5156 11.8516C13.5859 11.8516 12.25 12.7812 12.0469 14.1719L12.0391 14.2266H13.6719L13.6797 14.1953C13.8828 13.5938 14.5 13.25 15.4375 13.25C16.5859 13.25 17.1719 13.7656 17.1719 14.6953V15.4453L14.875 15.5781C12.8516 15.7031 11.7109 16.5859 11.7109 18.1016V18.1172C11.7109 19.6562 12.9062 20.6406 14.5234 20.6406ZM13.3984 18.0469V18.0312C13.3984 17.2656 13.9297 16.8438 15.1016 16.7734L17.1719 16.6406V17.3672C17.1719 18.4609 16.2422 19.2891 14.9766 19.2891C14.0625 19.2891 13.3984 18.8281 13.3984 18.0469Z"/>
        <PathGeometry x:Key="Ic_LeftArrowPath" Figures="M12.1377 9.23881C12.5175 8.77139 13.0877 8.5 13.6899 8.5H24C25.1046 8.5 26 9.39543 26 10.5V21.5C26 22.6046 25.1046 23.5 24 23.5H13.6899C13.0877 23.5 12.5175 23.2286 12.1377 22.7612L7.66895 17.2612C7.07192 16.5264 7.07192 15.4736 7.66895 14.7388L12.1377 9.23881Z"/>
        <PathGeometry x:Key="Ic_RightArrowPath" Figures="M20.8623 9.23881C20.4825 8.77139 19.9123 8.5 19.3101 8.5H9C7.89543 8.5 7 9.39543 7 10.5V21.5C7 22.6046 7.89543 23.5 9 23.5H19.3101C19.9123 23.5 20.4825 23.2286 20.8623 22.7612L25.3311 17.2612C25.9281 16.5264 25.9281 15.4736 25.3311 14.7388L20.8623 9.23881Z"/>
        <PathGeometry x:Key="Ic_CapitalPath" Figures="M11.4844 22H13.3203L14.3438 18.9531H18.6562L19.6719 22H21.5156L17.4453 10.7266H15.5547L11.4844 22ZM16.4297 12.7031H16.5625L18.1875 17.5469H14.8125L16.4297 12.7031Z"/>
        <dataconvert:UnVisivleConvert x:Key="UnVisivleConvert"/>
        <dataconvert:CenterToolTipConverter x:Key="CenterToolTipConverter"/>
        <dataconvert:IntAndTagToBoolMultiBinding x:Key="IntAndTagToBoolMultiBinding"/>
        <Style TargetType="{x:Type TabItem}">
            <Setter Property="Width" Value="74.67 " />
            <Setter Property="Height" Value="28" />
            <Setter Property="BorderThickness" Value="0" />
            <Setter Property="Template" Value="{StaticResource Segmented}" />
        </Style>
    </UserControl.Resources>
    <cus:DialogContent Header="新建图章">
        <cus:DialogContent.Content>
            <TabControl Margin="16,0" Grid.Row="1" Name="StampTabControl" BorderThickness="0" SelectedIndex="2" Style="{StaticResource FormTabControl}">
                <TabItem x:Name="文字图章"
                        Header="文字图章"
                        FontFamily="Segoe UI" Foreground="#FF666666"
                        FontSize="12"
                        IsSelected="True">
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="16"/>
                            <RowDefinition Height="110"/>
                            <RowDefinition Height="8"/>
                            <RowDefinition Height="32"/>
                            <RowDefinition Height="16"/>
                            <RowDefinition Height="32"/>
                            <RowDefinition Height="16"/>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="8"/>
                        </Grid.RowDefinitions>
                        <Border  Grid.Row="1" BorderBrush="#DFE1E5" BorderThickness="1" CornerRadius="4" Background="#F7F8FA" Padding="20">
                            <Image  Source="{Binding TextImageSource}"/>
                        </Border>
                        <cus:TextBoxEx Grid.Row="3" VerticalContentAlignment="Center" Text="{Binding StampText,Mode=TwoWay}" TextChanged="TextBox_TextChanged">
                            <i:Interaction.Triggers>
                                <i:EventTrigger EventName="LostFocus">
                                    <i:InvokeCommandAction Command="{Binding UpDataDynamicCommnad}" PassEventArgsToCommand="True" />
                                </i:EventTrigger>
                                <i:EventTrigger EventName="KeyDown">
                                    <i:InvokeCommandAction Command="{Binding KeyDown}" PassEventArgsToCommand="True" />
                                </i:EventTrigger>
                            </i:Interaction.Triggers>
                        </cus:TextBoxEx>
                        <Grid Grid.Row="5">
                            <StackPanel Orientation="Horizontal" Margin="4,0,0,0">
                                <TextBlock Text="Style" VerticalAlignment="Center" FontSize="14" FontFamily="Segoe UI" FontWeight="Bold"/>
                                <customcontrol:PathRadioButton  MouseOverBackground="#EDEEF0" MouseDownBackground="#CED0D4" MouseDownBackgroundOpacity="0.6"  Width="32" Height="32" Tag="1" Checked="RadioButton_Checked" VerticalAlignment="Center" Margin="4,0,0,0">
                                    <customcontrol:PathRadioButton.Content>
                                        <Grid Width="33" Height="33">
                                            <Path Data="{StaticResource Ic_CapitalPath}" Fill="Black"/>
                                        </Grid>
                                    </customcontrol:PathRadioButton.Content>
                                    <RadioButton.IsChecked>
                                        <MultiBinding Converter="{StaticResource IntAndTagToBoolMultiBinding }" Mode="OneWay">
                                            <Binding Source="1"/>
                                            <Binding Path="RadioButtonIndex"/>
                                        </MultiBinding>
                                    </RadioButton.IsChecked>
                                </customcontrol:PathRadioButton>
                                <customcontrol:PathRadioButton MouseOverBackground="#EDEEF0" MouseDownBackground="#CED0D4" MouseDownBackgroundOpacity="0.6"  Width="32" Height="32" Tag="2" Checked="RadioButton_Checked" VerticalAlignment="Center" Margin="4,0,0,0">
                                    <customcontrol:PathRadioButton.Content>
                                        <Grid Width="33" Height="33">
                                            <Rectangle RadiusX="1.5" RadiusY="1.5" Width="17" Height="17" Stroke="Black" >
                                            </Rectangle>
                                            <Path Data="{StaticResource Ic_CapitalPath}" Fill="Black"/>
                                        </Grid>
                                    </customcontrol:PathRadioButton.Content>
                                    <RadioButton.IsChecked>
                                        <MultiBinding Converter="{StaticResource IntAndTagToBoolMultiBinding }" Mode="OneWay">
                                            <Binding Source="2"/>
                                            <Binding Path="RadioButtonIndex"/>
                                        </MultiBinding>
                                    </RadioButton.IsChecked>
                                </customcontrol:PathRadioButton>
                                <customcontrol:PathRadioButton MouseOverBackground="#EDEEF0" MouseDownBackground="#CED0D4" MouseDownBackgroundOpacity="0.6"  Width="32" Height="32" Tag="3" Checked="RadioButton_Checked" VerticalAlignment="Center" Margin="4,0,0,0">
                                    <customcontrol:PathRadioButton.Content>
                                        <Grid Width="33" Height="33">
                                            <Rectangle RadiusX="1.5" RadiusY="1.5" Width="17" Height="17" Stroke="#68ACF8" Fill="#E8F5FF" >
                                            </Rectangle>
                                            <Path Data="{StaticResource Ic_CapitalPath}" Fill="#1770F4"/>
                                        </Grid>
                                    </customcontrol:PathRadioButton.Content>
                                    <RadioButton.IsChecked>
                                        <MultiBinding  Converter="{StaticResource IntAndTagToBoolMultiBinding }" Mode="OneWay">
                                            <Binding Source="3"/>
                                            <Binding Path="RadioButtonIndex"/>
                                        </MultiBinding>
                                    </RadioButton.IsChecked>
                                </customcontrol:PathRadioButton>
                                <customcontrol:PathRadioButton MouseOverBackground="#EDEEF0" MouseDownBackground="#CED0D4" MouseDownBackgroundOpacity="0.6"  Width="32" Height="32" Tag="4" Checked="RadioButton_Checked" VerticalAlignment="Center" Margin="4,0,0,0">
                                    <customcontrol:PathRadioButton.Content>
                                        <Grid Width="33" Height="33">
                                            <Rectangle RadiusX="1.5" RadiusY="1.5" Width="17" Height="17" Stroke="#3EDDA3" Fill="#E8FFF4" >
                                            </Rectangle>
                                            <Path Data="{StaticResource Ic_CapitalPath}" Fill="#10B382"/>
                                        </Grid>
                                    </customcontrol:PathRadioButton.Content>
                                    <RadioButton.IsChecked>
                                        <MultiBinding Converter="{StaticResource IntAndTagToBoolMultiBinding }" Mode="OneWay">
                                            <Binding Source="4"/>
                                            <Binding Path="RadioButtonIndex"/>
                                        </MultiBinding>
                                    </RadioButton.IsChecked>
                                </customcontrol:PathRadioButton>
                                <customcontrol:PathRadioButton MouseOverBackground="#EDEEF0" MouseDownBackground="#CED0D4" MouseDownBackgroundOpacity="0.6"  Width="32" Height="32" Tag="5" Checked="RadioButton_Checked" VerticalAlignment="Center" Margin="4,0,0,0">
                                    <customcontrol:PathRadioButton.Content>
                                        <Grid Width="33" Height="33">
                                            <Rectangle RadiusX="1.5" RadiusY="1.5" Width="17" Height="17" Stroke="#F8858B" Fill="#FFE9E8" >
                                            </Rectangle>
                                            <Path Data="{StaticResource Ic_CapitalPath}" Fill="#F3465B"/>
                                        </Grid>
                                    </customcontrol:PathRadioButton.Content>
                                    <RadioButton.IsChecked>
                                        <MultiBinding Converter="{StaticResource IntAndTagToBoolMultiBinding }" Mode="OneWay">
                                            <Binding Source="5"/>
                                            <Binding Path="RadioButtonIndex"/>
                                        </MultiBinding>
                                    </RadioButton.IsChecked>
                                </customcontrol:PathRadioButton>
                                <customcontrol:PathRadioButton MouseOverBackground="#EDEEF0" MouseDownBackground="#CED0D4" MouseDownBackgroundOpacity="0.6"  Width="32" Height="32" Tag="6" Checked="RadioButton_Checked" VerticalAlignment="Center" Margin="4,0,0,0">
                                    <customcontrol:PathRadioButton.Content>
                                        <Grid Width="33" Height="33">
                                            <Path Data="{StaticResource Ic_LeftArrowPath}" Fill="#E8F5FF" Stroke="#68ACF8"/>
                                            <Path Data="{StaticResource Ic_LeftLowerCasePath}" Fill="#1770F4"/>
                                        </Grid>
                                    </customcontrol:PathRadioButton.Content>
                                    <RadioButton.IsChecked>
                                        <MultiBinding Converter="{StaticResource IntAndTagToBoolMultiBinding }" Mode="OneWay">
                                            <Binding Source="6"/>
                                            <Binding Path="RadioButtonIndex"/>
                                        </MultiBinding>
                                    </RadioButton.IsChecked>
                                </customcontrol:PathRadioButton>
                                <customcontrol:PathRadioButton MouseOverBackground="#EDEEF0" MouseDownBackground="#CED0D4" MouseDownBackgroundOpacity="0.6"  Width="32" Height="32" Tag="7" Checked="RadioButton_Checked" VerticalAlignment="Center" Margin="4,0,0,0">
                                    <customcontrol:PathRadioButton.Content>
                                        <Grid Width="33" Height="33">
                                            <Path Data="{StaticResource Ic_LeftArrowPath}" Fill="#E8FFF4" Stroke="#3EDDA3"/>
                                            <Path Data="{StaticResource Ic_LeftLowerCasePath}" Fill="#10B382"/>
                                        </Grid>
                                    </customcontrol:PathRadioButton.Content>
                                    <RadioButton.IsChecked>
                                        <MultiBinding Converter="{StaticResource IntAndTagToBoolMultiBinding }" Mode="OneWay">
                                            <Binding Source="7"/>
                                            <Binding Path="RadioButtonIndex"/>
                                        </MultiBinding>
                                    </RadioButton.IsChecked>
                                </customcontrol:PathRadioButton>
                                <customcontrol:PathRadioButton MouseOverBackground="#EDEEF0" MouseDownBackground="#CED0D4" MouseDownBackgroundOpacity="0.6"  Width="32" Height="32"  Tag="8" Checked="RadioButton_Checked" VerticalAlignment="Center" Margin="4,0,0,0">
                                    <customcontrol:PathRadioButton.Content>
                                        <Grid Width="33" Height="33">
                                            <Path Data="{StaticResource Ic_LeftArrowPath}" Fill="#FFE9E8" Stroke="#F8858B"/>
                                            <Path Data="{StaticResource Ic_LeftLowerCasePath}" Fill="#F3465B"/>
                                        </Grid>
                                    </customcontrol:PathRadioButton.Content>
                                    <RadioButton.IsChecked>
                                        <MultiBinding Converter="{StaticResource IntAndTagToBoolMultiBinding }" Mode="OneWay">
                                            <Binding Source="8"/>
                                            <Binding Path="RadioButtonIndex"/>
                                        </MultiBinding>
                                    </RadioButton.IsChecked>
                                </customcontrol:PathRadioButton>
                                <customcontrol:PathRadioButton MouseOverBackground="#EDEEF0" MouseDownBackground="#CED0D4" MouseDownBackgroundOpacity="0.6"  Width="32" Height="32"  Tag="9" Checked="RadioButton_Checked" VerticalAlignment="Center" Margin="4,0,0,0">
                                    <customcontrol:PathRadioButton.Content>
                                        <Grid Width="33" Height="33">
                                            <Path Data="{StaticResource Ic_RightArrowPath}" Fill="#E8F5FF" Stroke="#68ACF8"/>
                                            <Path Data="{StaticResource Ic_RightLowerCasePath}" Fill="#1770F4"/>
                                        </Grid>
                                    </customcontrol:PathRadioButton.Content>
                                    <RadioButton.IsChecked>
                                        <MultiBinding Converter="{StaticResource IntAndTagToBoolMultiBinding }" Mode="OneWay">
                                            <Binding Source="9"/>
                                            <Binding Path="RadioButtonIndex"/>
                                        </MultiBinding>
                                    </RadioButton.IsChecked>
                                </customcontrol:PathRadioButton>
                                <customcontrol:PathRadioButton MouseOverBackground="#EDEEF0" MouseDownBackground="#CED0D4" MouseDownBackgroundOpacity="0.6"  Width="32" Height="32"  Tag="10" Checked="RadioButton_Checked" VerticalAlignment="Center" Margin="4,0,0,0">
                                    <customcontrol:PathRadioButton.Content>
                                        <Grid Width="33" Height="33">
                                            <Path Data="{StaticResource Ic_RightArrowPath}" Fill="#E8FFF4" Stroke="#3EDDA3"/>
                                            <Path Data="{StaticResource Ic_RightLowerCasePath}" Fill="#10B382"/>
                                        </Grid>
                                    </customcontrol:PathRadioButton.Content>
                                    <RadioButton.IsChecked>
                                        <MultiBinding Converter="{StaticResource IntAndTagToBoolMultiBinding }" Mode="OneWay">
                                            <Binding Source="10"/>
                                            <Binding Path="RadioButtonIndex"/>
                                        </MultiBinding>
                                    </RadioButton.IsChecked>
                                </customcontrol:PathRadioButton>
                                <customcontrol:PathRadioButton MouseOverBackground="#EDEEF0" MouseDownBackground="#CED0D4" MouseDownBackgroundOpacity="0.6"  Width="32" Height="32"  Tag="11" Checked="RadioButton_Checked" VerticalAlignment="Center" Margin="4,0,0,0">
                                    <customcontrol:PathRadioButton.Content>
                                        <Grid Width="33" Height="33">
                                            <Path Data="{StaticResource Ic_RightArrowPath}" Fill="#FFE9E8" Stroke="#F8858B"/>
                                            <Path Data="{StaticResource Ic_RightLowerCasePath}" Fill="#F3465B"/>
                                        </Grid>
                                    </customcontrol:PathRadioButton.Content>
                                    <RadioButton.IsChecked>
                                        <MultiBinding Converter="{StaticResource IntAndTagToBoolMultiBinding}" Mode="OneWay">
                                            <Binding Source="11"/>
                                            <Binding Path="RadioButtonIndex"/>
                                        </MultiBinding>
                                    </RadioButton.IsChecked>
                                </customcontrol:PathRadioButton>
                            </StackPanel>
                        </Grid>
                        <StackPanel Grid.Row="7" Orientation="Horizontal" HorizontalAlignment="Center" >
                            <CheckBox Name="Date" VerticalAlignment="Center" FontFamily="Seoge UI" FontSize="14" Content="Date" Padding="9 0 0 0" IsChecked="{Binding IsCheckedDate,Mode=TwoWay}"/>
                            <CheckBox Name="Time" Margin="16,0,0,0" VerticalAlignment="Center" FontFamily="Seoge UI" FontSize="14" Content="Time" Padding="9 0 0 0" IsChecked="{Binding IsCheckedTime,Mode=TwoWay}"/>
                        </StackPanel>
                    </Grid>
                </TabItem>
                <TabItem  x:Name="图片图章"
                        Header="图片图章"
                        FontFamily="Segoe UI" Foreground="#FF666666"
                        FontSize="12">
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="16"/>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="16"/>
                            <RowDefinition Height="Auto"/>
                        </Grid.RowDefinitions>

                        <Border Grid.Row="1" BorderBrush="#DFE1E5" BorderThickness="1" CornerRadius="4" Background="#F7F8FA" Padding="8">
                            <Grid>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="12"/>
                                    <RowDefinition Height="*"/>
                                    <RowDefinition Height="8"/>
                                    <RowDefinition Height="24"/>
                                </Grid.RowDefinitions>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="12"/>
                                    <ColumnDefinition Width="*"/>
                                    <ColumnDefinition Width="12"/>
                                </Grid.ColumnDefinitions>
                                <StackPanel    x:Name="AddStackPanel"  Grid.Column="1"  Grid.Row="1" Grid.RowSpan="2" Visibility="{Binding ShowImageButton}" >
                                    <customcontrol:ImageButton
                                Height="128" Width="128" IconHeight="128" IconWidth="128"  
                                Icon="pack://application:,,,/PDF Office;component/Resources/Dialog/AddImage.png"  
                                IconPress="pack://application:,,,/PDF Office;component/Resources/Dialog/AddImageSuspend.png"  
                                IconMouseOver="pack://application:,,,/PDF Office;component/Resources/Dialog/AddImageSuspend.png"   Command="{Binding OpenImageCommnad}"/>
                                    <TextBlock Text="Select image file" FontSize="14" FontFamily="Segoe UI" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                                </StackPanel>
                                <Image Grid.Column="1"  Grid.Row="1" Source="{Binding ImagePreviewSource}" Visibility="{Binding ElementName=AddStackPanel,Path=Visibility,Converter={StaticResource UnVisivleConvert}}"/>
                                <Button Grid.Row="3" Grid.Column="1" Grid.ColumnSpan="2"  Content="Reselect" Height="24" HorizontalAlignment="Right"  VerticalAlignment="Bottom" Style="{StaticResource btn.sec}" Command="{Binding OpenImageCommnad}"  Visibility="{Binding ElementName=AddStackPanel,Path=Visibility,Converter={StaticResource UnVisivleConvert}}"/>
                            </Grid>
                        </Border>
                        <StackPanel Grid.Row="3"  Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
                            <CheckBox  IsChecked="{Binding IsRemoveBackground}" HorizontalAlignment="Center" VerticalAlignment="Top" />
                            <TextBlock  Text="Clear background" Margin="9,0,0,0"/>
                            <customcontrol:ImageButton Margin="8,0,0,0"
                                Height="16" Width="16" IconHeight="16" IconWidth="16"  
                                Icon="pack://application:,,,/PDF Office;component/Resources/Dialog/help.png"  
                                IconPress="pack://application:,,,/PDF Office;component/Resources/Dialog/help.png"  
                                IconMouseOver="pack://application:,,,/PDF Office;component/Resources/Dialog/help.png">
                                <customcontrol:ImageButton.ToolTip >
                                    <ToolTip Style ="{DynamicResource MyToolTipStyle}" Placement="Bottom" Content="Remove white background from images" >
                                        <ToolTip.HorizontalOffset>
                                            <MultiBinding Converter="{StaticResource CenterToolTipConverter}">
                                                <Binding RelativeSource="{RelativeSource Self}" Path="PlacementTarget.ActualWidth"/>
                                                <Binding RelativeSource="{RelativeSource Self}" Path="ActualWidth"/>
                                            </MultiBinding>
                                        </ToolTip.HorizontalOffset>
                                    </ToolTip>
                                </customcontrol:ImageButton.ToolTip>
                            </customcontrol:ImageButton>
                        </StackPanel>
                    </Grid>
                </TabItem>
            </TabControl>
        </cus:DialogContent.Content>
        <cus:DialogContent.BottmBar>
            <Grid Margin="16,0">
                <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
                    <Button
                    Grid.Column="0"
                    Width="80"
                    Height="32"
                    HorizontalAlignment="Right"
                    Style="{StaticResource Btn.cta}"
                    Command="{Binding CreateCommnad}"
                    Content="确定" />
                    <Button
                    Grid.Column="1"
                    Width="80"
                    Height="32"
                    Margin="16,0,0,0"
                    HorizontalAlignment="Right"
                    Style="{StaticResource btn.sec}"
                    Command="{Binding CancelCommand}"
                    Content="取消" />
                </StackPanel>
            </Grid>
        </cus:DialogContent.BottmBar>
    </cus:DialogContent>
</UserControl>
