【发布时间】:2009-03-26 01:41:35
【问题描述】:
我正在为App.xaml 中的窗口设置样式,如下所示:
<Application x:Class="MusicRepo_Importer.App" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:System="clr-namespace:System;assembly=mscorlib" StartupUri="TestMaster.xaml">
<Application.Resources>
<Style TargetType="Window">
<Setter Property="WindowStyle" Value="None"></Setter>
</Style>
</Application.Resources>
</Application>
我基本上希望每个窗口都将其 WindowStyle 的属性值设置为 None(以删除默认的窗口框架和边框);但它不起作用。
我在这里错过了什么?
【问题讨论】: