Files
DeedyDesigner/DeedyDesigner/Deedy.Testing/MainWindow.xaml

25 lines
1.1 KiB
XML

<Window x:Class="Deedy.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:Deedy"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800" Closing="Window_Closing">
<DockPanel>
<Border Height="40" DockPanel.Dock="Top" >
<local:ExMarkup.WindowChrome>
<local:WindowDecorator Background="{DynamicResource BGTitle}" Foreground="{DynamicResource FGTitle}" FontSize="20" HoverBrush="{DynamicResource FGKeynote}">
</local:WindowDecorator>
</local:ExMarkup.WindowChrome>
</Border>
<AdornerDecorator x:Name="decorator">
<UniformGrid>
<Button Content="打开抽屉" Click="Button_Click"/>
<Button Content="自定义窗口标题测试" Click="Button_Click_1"/>
</UniformGrid>
</AdornerDecorator>
</DockPanel>
</Window>