UIStandard/UIStandard.Start/Views/DialogWindow.xaml
2025-04-11 09:24:01 +08:00

23 lines
1.0 KiB
XML

<Window x:Class="UIStandard.Start.Views.DialogWindow"
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:UIStandard.Start.Views"
mc:Ignorable="d"
ResizeMode="NoResize"
WindowStartupLocation="CenterScreen"
Background="{x:Null}"
Title="{Binding Title}"
Width="{Binding Content.Width,RelativeSource={RelativeSource Self}}"
Height="{Binding Content.Height,RelativeSource={RelativeSource Self}}">
<WindowChrome.WindowChrome>
<WindowChrome GlassFrameThickness="-1" NonClientFrameEdges="None"/>
</WindowChrome.WindowChrome>
<!--窗口关闭-->
<Window.CommandBindings>
<CommandBinding Command="Close" Executed="CloseBinding_Executed"/>
</Window.CommandBindings>
</Window>