Hi,
I am using the Prism4 framework for my project and upon creating the base shell window I wanted to use the shell window as the xamRibbonWindow. This is because I wanted to have the ribbon in the caption area like office 2007 and not just have it as a "Menu" as it is now.
When using the xamRibbonWindow visual studio reports an issue stating:
Base class 'Infragistics.Windows.Ribbon.XamRibbonWindow' specified for class 'Shell' cannot be different from the base class 'System.Windows.Window' of one of its other partial types.
Is there anyway around this? Can I overcome this by setting the shell window style to None (not display the normal window chrome)? if so how would you suggest adding the max/min/close buttons on the top right corner?
Thanks
Yes you are quite right. I must be going funny in the head.
Here is an example how it should look like:
**XAML:
<igRibbon:XamRibbonWindow x:Class="WPF_XamRibbonWindow_Header.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:igRibbon="http://infragistics.com/Ribbon" Title="Window1" Height="200" Width="400" > <igRibbon:RibbonWindowContentHost> <igRibbon:RibbonWindowContentHost.Ribbon> <igRibbon:XamRibbon Name="XamRibbon1"> . . . </igRibbon:XamRibbon> </igRibbon:RibbonWindowContentHost.Ribbon> </igRibbon:RibbonWindowContentHost></igRibbon:XamRibbonWindow>
**Code behind:
public partial class Window1 : XamRibbonWindow{...}
Thank you,Sam
It sounds like you only changed part of what you needed to. You would need to change the base class in the code behind window to derive from XamRibbonWindow and also you would need to change the XAML so that instead of <Window></Window> you use <igRibbon:XamRibbonWindow xmlns:igRibbon="http://infragistics.com/Ribbon"></igRibbon:XamRibbonWindow>