初始化时使window 全屏 且显示任务栏 wpf

void IniWindowFullScreemAndDisplayTaskbar()
{
this.Width = SystemParameters.FullPrimaryScreenWidth;
this.Height = SystemParameters.FullPrimaryScreenHeight + 22;
this.Left = 0;
this.Top = 0;
this.WindowState = WindowState.Normal;
}

猜你喜欢

转载自www.cnblogs.com/Zhang9823/p/11926852.html