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