private void HtmlSet_click(object sender, RoutedEventArgs e) // 主窗口中打开子窗口
{
Mouse.SetCursor(Cursors.Wait);
HtmlSetDevice ChildHtmlSetDevice = new HtmlSetDevice();
ChildHtmlSetDevice.Owner = this;
ChildHtmlSetDevice.Show();
}
public HtmlSetDevice() // 子窗口 进行全屏化显示设置
{
InitializeComponent();
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;
}
子窗口打开全屏化显示
猜你喜欢
转载自blog.csdn.net/tiger15605353603/article/details/81427554
今日推荐
周排行