WPF系列:无边框窗口

<Window x:Class="Ares.Animations.Window3"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Window3" Height="300" Width="300" WindowStyle="None" Background="{x:Null}" AllowsTransparency="True" >
    <DockPanel Background="BlueViolet">
        <Border Height="30" Background="BlueViolet" DockPanel.Dock="Top" MouseLeftButtonDown="Window_MouseLeftButtonDown">
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition/>
                    <ColumnDefinition/>
                </Grid.ColumnDefinitions>
                <TextBlock FontSize="18">无边框窗口</TextBlock>
                <StackPanel Grid.Column="1"  Orientation="Horizontal" HorizontalAlignment="Right">
                    <Rectangle Width="30" Height="30" Fill="Red" Stroke="Black" StrokeThickness="2"></Rectangle>
                    <Rectangle Width="30" Height="30" Fill="Red" Stroke="Black" StrokeThickness="2"></Rectangle>
                    <Rectangle Width="30" Height="30" Fill="Red" Stroke="Black" StrokeThickness="2"  MouseDown="Rectangle_MouseDown"></Rectangle>
                </StackPanel>
            </Grid>
        </Border>
        <Border  Background="WhiteSmoke" >
            <TextBlock>Center</TextBlock>
        </Border>
    </DockPanel>
</Window>

WPF系列:无边框窗口

上一篇:BZOJ 4568 [Scoi2016]幸运数字(树链剖分 + 异或线性基)


下一篇:【BZOJ 4568】 4568: [Scoi2016]幸运数字 (线性基+树链剖分+线段树)