How to set a RibbonWindow derived window full screen?

Oct 15, 2010 at 8:19 AM

Normally I have just set these styles on a window to make it fill the entire screen:

_window.WindowStyle = WindowStyle.None;
_window.Topmost = true;
_window.WindowState = WindowState.Maximized;

That does not work with a window hosting a ribbon. It will only maximize the window, but not hide the caption and set itself on top of the task bar.


Oct 15, 2010 at 10:42 AM

RibbonWindow is designed for Fluent user interface. The fucntions what you mentioned are overriden, only predefined apperiance is allowed. Anyway, try to use a regular window System.Windows.Window or window from 'WPF Chrome' pack.


Dec 13, 2012 at 7:59 AM

I know this is an old discussion but I just wanted to let everyone know I found out how to do this(using the newer source code build). Here is how(using a Fluent ToggleButton in VB.Net):

Private fullscreensetting As WindowState = Windows.WindowState.Normal
    Private Sub FullscreenMenuItem_Checked(sender As Object, e As RoutedEventArgs) Handles FullscreenMenuItem.Checked
        fullscreensetting = WindowState
        If WindowState = Windows.WindowState.Maximized Then
            WindowState = Windows.WindowState.Normal
        End If
        WindowStyle = Windows.WindowStyle.None
        Topmost = True
        WindowState = Windows.WindowState.Maximized
    End Sub

    Private Sub FullscreenMenuItem_Unchecked(sender As Object, e As RoutedEventArgs) Handles FullscreenMenuItem.Unchecked
        Topmost = False
        WindowStyle = Windows.WindowStyle.SingleBorderWindow
        WindowState = Windows.WindowState.Normal
        WindowState = fullscreensetting
    End Sub
Thank you - Primo360