【发布时间】:2017-03-13 17:02:41
【问题描述】:
我正在尝试删除所有 chrome(边框和标题)。我可以这样做,但是宽度大小不正确。
<Window x:Class="ActiveWords.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
xmlns:prop="clr-namespace:ActiveWords.Properties"
SizeToContent="WidthAndHeight"
WindowStyle="ToolWindow"
ResizeMode="NoResize"
AllowDrop="True">
我有一个小按钮 (50 x 50) 作为窗口的唯一内容。当WindowStyle="None" 宽度太宽时,大约是200。但是当我设置WindowStyle="ToolWindow" 时,宽度和高度都是正确的。但是,我有一个我不想要的标题栏。
知道如何让它工作吗?
【问题讨论】: