<UserControl x:Class="Zerolauncher.dialog.EditTeamControl"
             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" 
             mc:Ignorable="d" 
             d:DesignHeight="169" d:DesignWidth="290">
    <DockPanel>
        <TextBox Name="edit_name" Margin="60" DockPanel.Dock="Top" Height="20">
            <TextBox.Resources>
                <VisualBrush x:Key="HelpBrush" TileMode="None" Opacity="0.3" Stretch="None" AlignmentX="Left">
                    <VisualBrush.Visual>
                        <TextBlock FontStyle="Italic" Text="请输入队伍昵称" Foreground="#FFFFFDDD"/>
                    </VisualBrush.Visual>
                </VisualBrush>
            </TextBox.Resources>
            <TextBox.Style>
                <Style TargetType="TextBox">
                    <Style.Triggers>
                        <Trigger Property="Text" Value="{x:Null}">
                            <Setter Property="Background" Value="{StaticResource HelpBrush}"/>
                        </Trigger>
                        <Trigger Property="Text" Value="">
                            <Setter Property="Background" Value="{StaticResource HelpBrush}"/>
                        </Trigger>
                    </Style.Triggers>
                </Style>
            </TextBox.Style>
        </TextBox>
        <DockPanel Margin="7">
            <Button DockPanel.Dock="Right" Background="Transparent" Click="Button_Click" BorderBrush="Transparent">
                <Image Source="/res/25.png"/>
            </Button>
            <Button x:Name="btn_del" DockPanel.Dock="Left" Background="Transparent" Click="Button_Click_1" BorderBrush="Transparent">
                <Image Source="/res/del.png"/>
            </Button>
            <Label/>
        </DockPanel>
    </DockPanel>
</UserControl>
