Hi,
I wanted to switch from Window to XamRibbonWindow as you instructed.
in step 4 you write:
Declare tags for the RibbonWindowContentHost's Ribbon property within the tags for the RibbonWindowContentHost. You can now add XAML for a xamRibbon control inside these tags. ...
My problem is that in my main window, I use a
<ContentControl x:Name="MenuLocation" .../>
while in a code I enter a UserControl that contains the XamRibbon as a content.
The problem is that I can't enter the <igRibbon:RibbonWindowContentHost.Ribbon> not in the main window hence it's child is <ContentControl and not in the userControl hence it's parent is UserControl and not RibbonWindowContentHost.
How can it be solved?
Hello Prasanti and thank you for posting!
As you have correctly noticed the Ribbon property expects value of type XamRibbon and this is the reason UserControl, even when it contains only XamRibbon, could not be set as value to it. You can rather use XamRibbon directly in order to have it displayed in the non client area of the XamRibbonWindow (in the title) or set the UserControl directly in the XamRibbonWindowContentHost and get it displayed in the client area as was previously discussed here.
Hi All,
I have a problem with my sample where I tried to insert the XamRibbon into the XamRibbonWinodow in XamRibbonWindowContentHost.Ribbon field (as you know only then it will merge into the title bar), where my XamRibbon is defined in another UserControl.
Now I am unable to add this user control into the XamRibbonWindowContentHost.Ribbon field as it expects only XamRibbon control in it.
I also tried another option where I can declare a contentcontrol with XamRibbon in it, which can be included in XamRibbonContentHost defining a grid. But here it doesn't merge the XamRibbon into the Tiltlebar.
Please help me out here if there is a way out there to do this as I have a requirement where I need to use a UserControl for declaring the XamRibbon and also need the Ribbon to be merged into title bar. I am attaching my XamRibbonWindow in this post.
Thanks,
Prasanti.
Hello Steve.
I'm sorry, No. I did not receive a answer that helped me to solve that problem. I don't have the sources of that project anylonger and I can't remember, if I found another solution. I don't use Infragistics anylonger but I would think, that the controls have evolved since the last month and maybe it's worth to post this question again directly to the support.
Good luck.
Ralf
Ralf,
Did you ever get an answer to this? I'm looking to do the same as you descrie and could use an example.
Thanks.
Steve
Hello Andrew.
I have the same problem here and I tried to get it running the way you explained, but at least I couldn't:-( What I would like to have is the following:
A WPF-Window representing the main window with a "central" Ribbon. My different program modules (user controls) should be displayed on a TabGroupPane hosted in a DocumentContentHost. I got that running and it works very well. Now each program module (user control) should hold its own Ribbon and when the module is activated it should incorporate the Ribbon (Tabs and Groups) in the central Ribbon of the main window.
If I read your posting well it should be possible to achive this but I couldn't figure out how to do this. Can you please give me a little code sample?
Thank you,