Hi,
I want to hide Close button on XamRibbonWindow
Using Office2007Balck theme
is there a way to do it?
Hello Onkar,
Thank you for your post. I have been looking into it, but it seems like there were some issues and the sample you attached is not available. Could please try to attach it again, so I can investigate it further for you?
Looking forward for your reply.
I am using XAMRibbonWindow but by default i dont get all 3 buttons(min,mix,close). When i set Window.style to default it shows me a titlebar above the xamribbon and there it shows those 3 buttons but i want all those 3 buttons on xamribbon and not on other titlebar. Can you help on this. Please refer to sample attached
Hello,
Since our RibbonWindow inherits the microsoft Window you can use its funcionality like so:
this
.WindowStyle = WindowStyle.None;
of course this will also hide the minimize and maximize buttons but this is the closest and easiest way to do what you want.
It is usually kinda a difficult to remove only the close button from a window but here is what I found: http://winsharp93.wordpress.com/2009/07/21/wpf-hide-the-window-buttons-minimize-restore-and-close-and-the-icon-of-a-window/
Hope this helps.
Sincerely,
Petar Monov,
DS Engineer,
Infragistics Bulgaria