WPF窗口:
MainWindow.xaml中修改代码如下:
Title="MainWindow" Height="1080" Width="1920" WindowStyle="None"<!--无边框-->
Background="{x:Null}" AllowsTransparency="True" <!--透明-->
Topmost ="True" <!--置顶-->>
MainWindow.xaml.cs中修改如下:
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
#region 设置全屏
this.WindowState = System.Windows.WindowState.Normal;
this.WindowStyle = System.Windows.WindowStyle.None;
this.ResizeMode = System.Windows.ResizeMode.NoResize;
this.Topmost = true;
this.Left = 0.0;
this.Top = 0.0;
this.Width = System.Windows.SystemParameters.PrimaryScreenWidth;
this.Height = System.Windows.SystemParameters.PrimaryScreenHeight;
#endregion
}
pr