举例子:比如在 MainView.xaml.cs
可以写在Window_Loaded事件中
private void Window_Loaded(object sender, RoutedEventArgs e) { this.Left = 0.0; this.Top = 0.0; this.Height = SystemParameters.WorkArea.Height; this.Width = SystemParameters.WorkArea.Width;////得到屏幕工作区域宽度 }
这样弹出界面的时候,即可全屏展示
标签:界面,状态栏,SystemParameters,0.0,Width,Window,WPF From: https://www.cnblogs.com/FangJiehua6/p/17337428.html