一直以為沒有窗體邊框的程序是別的模式呢,原來不是,是設(shè)置屬性隱藏了。
屬性:WindowStyle="None" AllowsTransparency="True"
<Window x:Class="WindowsScreens.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525" ResizeMode="CanMinimize"
WindowStyle="None"
AllowsTransparency="True">
<Grid Background="Black">
</Grid>
</Window>