<Window x:Class="Zerolauncher.dialog.BaseDialog"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:MyNamespace="clr-namespace:Zerolauncher.controls"
        AllowsTransparency="True" WindowStyle="None" Background="Transparent"
        Title="零蛋消息" Height="220" Width="360" MouseLeftButtonDown="Window_MouseLeftButtonDown">
    <Window.Resources>
        <Storyboard x:Key="BlinkAnimation">
            <DoubleAnimation Storyboard.TargetProperty="Opacity"
                        From="1.0" To="0.5" Duration="0:0:0.5"
                        AutoReverse="True" RepeatBehavior="1" />
        </Storyboard>
    </Window.Resources>

    <Grid>
        <!-- 使用透明背景的PNG图片作为窗口的背景 -->
        <Image x:Name="pic_bg" Source="/res/2.png" Stretch="Fill"/>
        <DockPanel Margin="5">
            <DockPanel DockPanel.Dock="Top">
                <DockPanel.Resources>
                    <ResourceDictionary>
                        <ResourceDictionary.MergedDictionaries>
                            <ResourceDictionary Source="../controls/AirButton.xaml"/>
                        </ResourceDictionary.MergedDictionaries>
                    </ResourceDictionary>
                </DockPanel.Resources>
                <MyNamespace:AirButton Background="Transparent" Height="21" Width="30" Click="AirButton_Click" DockPanel.Dock="Right" BorderBrush="Transparent" Style="{StaticResource ChangeButtonIsMouseOver}">
                    <Image Source="/res/btn_close1.png"/>
                </MyNamespace:AirButton>
                <Label/>
            </DockPanel>
            <Grid Name="mControl" Margin="5"/>
        </DockPanel>
    </Grid>
</Window>
