zoukankan      html  css  js  c++  java
  • [wpf]wpf full screen.

    void window_KeyDown(object sender,KeyEventArgs e)

    {

        if(e.Key == Key.F11)

        {

            Window.ResizeMode = ResizeMode.NoResize;

            

            Window.WindowState = WindowState.Normal;

            Window.WindowStyle = WindowStyle.None;

            

            Window.Width = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width;

            Window.Height = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height;

            Window.Top = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Top;

            Window.Left = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Left;

            

            Window.WindowState = WindowState.Maximized;

        }

    }

    void window_KeyDown(object sender,KeyEventArgs e)
      {
      if(e.Key == Key.F11)
      {
      Window.ResizeMode = ResizeMode.NoResize;
       
      Window.WindowState = WindowState.Normal;
      Window.WindowStyle = WindowStyle.None;
       
      Window.Width = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width;
      Window.Height = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height;
      Window.Top = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Top;
      Window.Left = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Left;
       
      Window.WindowState = WindowState.Maximized;
      }
      }
  • 相关阅读:
    Android Lint简介
    免费HTTP数据抓包Fiddler2[4.6.1.2]以及显示中文包内容的方法
    IE6、7下bug
    图表插件
    学习:使用svg
    jQuery Transit
    jQuery基础学习笔记(1)
    HTTP协议详解学习
    html5学习笔记
    html释疑
  • 原文地址:https://www.cnblogs.com/nocanstillbb/p/11251304.html
Copyright © 2011-2022 走看看