Hi,
I have the following setting:
I have a ToolWindow which is docked in a splitcontainer. Inside this toolwindow is a winforms panel which we use to render some OpenGL drawings.
Now I would like to achieve that if the users presses a button or a short cut, the tool window should be undocked and maximized to full screen and I also would like to hide the titlebar of the tool window, so that the complete screen space is filled with the OpenGL drawing.
In this way we want to simulate some sort of full screen rendering so that the user does not recognize that the drawing is still inside a window (like the fullscreen mode of 3ds Max or other modeling / rendering tools).
I am able to retrieve the rafting window which is the top most parent of the toolwindow and tried the following, unfortunately without success:Am I doing something wrong or do you have any suggestions how I can make the title bar of the window invisible?
Any help would be appreciated.
Greetings,
Patric
I have the following setting:
I have a ToolWindow which is docked in a splitcontainer. Inside this toolwindow is a winforms panel which we use to render some OpenGL drawings.
Now I would like to achieve that if the users presses a button or a short cut, the tool window should be undocked and maximized to full screen and I also would like to hide the titlebar of the tool window, so that the complete screen space is filled with the OpenGL drawing.
In this way we want to simulate some sort of full screen rendering so that the user does not recognize that the drawing is still inside a window (like the fullscreen mode of 3ds Max or other modeling / rendering tools).
I am able to retrieve the rafting window which is the top most parent of the toolwindow and tried the following, unfortunately without success:
// note: parentWindow is the topmost rafting window of the toolwindow
// this call does not seem to have any effect
parentWindow.WindowStyle = WindowStyle.None;
// also this call does not seem to do anything, the title bar of the window is still visible
parentWindow.TitleBarVisibility = RaftingWindowTitleBarVisibility.Hidden;
// this call expands the rafting window over the taskbar
parentWindow.IsFullScreenAllowed = true;
// put the window in maximized state
parentWindow.ToggleMaximizedState();
// now the window fills the complete screen, but the title bar is still visible.
Any help would be appreciated.
Greetings,
Patric