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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

RibbonWindow - hide Maximize and Minimize button in resizable window

Thread ID:

Created:

Updated:

Platform:

Replies:

115390 Jan 15,2014 08:40 AM UTC Jan 23,2014 05:40 AM UTC WPF 1
loading
Tags: Tools
Juraj Tomana
Asked On January 15, 2014 08:40 AM UTC

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

Jegan Raj M [Syncfusion]
Replied On 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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;