【发布时间】:2013-01-27 23:32:03
【问题描述】:
我有一个 WPF 窗口,没有默认窗口“chrome”。
<Window x:Class="Genesis.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Genesis (Alpha)" Height="812" Width="917" Loaded="Window_Loaded"
DataContext="{Binding RelativeSource={RelativeSource Self}}" Name="Genesis" Closing="Genesis_Closing"
WindowStyle="None" BorderThickness="0" Margin="0" ShowInTaskbar="False" AllowsTransparency="True" Background="#F8F8F8"></Window>
由于没有用于拖动窗口的默认栏,我无法拖动窗口。如何使用新控件重新创建拖动?
【问题讨论】: