none
GraphicsWindow.FullScreen(true/false) (Suggestion) RRS feed

All replies

  • I think it will be something like this if

    GraphicsWindow window = public /*(or private)*/ static System.Windows.Window /*(or System.Windows.Forms.Form)*/  _window;

     

        public static Primitive FullScreen
            {
                set

                    {
                    /* Something what checks is Graphics window visible or not, if GraphicsWindow is not visible it shows it.
                    BeginInvoke(delegate {
                    if (value = "true")
            {
                        _window.Width = Desktop.Width;
                        _window.Height = Desktop.Height;
                        _window.Topmost = true;
            }
            else
            {
                _window.Width = OldHeightBeforeFullScreenMode;
                        _window.Height = OldWidhtBeforeFullScreenMode;
                        _window.Topmost = false;
                    });

                    }

    }

     

     

     

     


    Sorry My Bad English
    Sunday, May 2, 2010 7:38 PM