Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
245
XamRibbonWindow and WindowStyle = None
posted

When RibbonWindowContentHost is set as a content of the XamRibbonWindow, changing WindowStyle doesn't really change style.

So with the window defined as below:

 <igr:XamRibbonWindow x:Class="XamRibbonWindowTests.Window1"

 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

 

 

xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

 

 

xmlns:igr="http://infragistics.com/Ribbon"

 

 

Height="300" Width="300" WindowStyle="None">

 

 

 

<igr:RibbonWindowContentHost>

 

 

 

</igr:RibbonWindowContentHost>

</

 

igr:XamRibbonWindow>

 

I still have min/max/close buttons, which is not the case for standard WPF Window.

The question is how to reach behavior of standard WPF window with None style, when using XamRibbonWindow?

Parents
No Data
Reply
  • 54937
    Offline posted

    The xamRibbonWindow is designed to mimic the Office window which always has a title area. Setting a Window's WindowStyle to None would hide the entire caption area which really can't be supported since the application menu, qat and contextual tab groups need to exist in that area. If you don't want the non-client area of the xamRibbonWindow then you could just use a XamRibbon in a standard WPF window and set its WindowStyle to None. Note, setting the ResizeMode of the XamRibbonWindow to NoResize will result in the Minimize and Maximize buttons being hidden.

Children
No Data