We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

RibbonWindow - hide Maximize and Minimize button in resizable window

Hi.

It's possible to hide Maximize and Minimize buttons in resizable RibbonWindow?

In normal Window I can do that using following pseudo-code:

...
OnSourceInitialized()
{
HideMinimizeAndMaximizeButtons(this);
}

static void HideMinimizeAndMaximizeButtons(Window window)
    {
      IntPtr hwnd = new System.Windows.Interop.WindowInteropHelper(window).Handle;
      var currentStyle = GetWindowLong(hwnd, GWL_STYLE);

      SetWindowLong(hwnd, GWL_STYLE, (currentStyle & ~WS_MAXIMIZEBOX & ~WS_MINIMIZEBOX));
    }

Thanks.

Regards,
Juraj

1 Reply

JR Jegan Raj M Syncfusion Team January 23, 2014 05:40 AM UTC

Hi Juraj,

We have created sample based on your requirement in which Minimized and Maximized button is hided for resizable RibbonWindow.
Please download the sample from the below link.

Please let us know if you need further assistance.

Regards,
Jegan Raj M


RibbonSample_d494e384.zip

Loader.
Up arrow icon