Hi
I want to use the xamRibbon inside my WPF/SCSF application. Any suggestions on how to best work with it?
Kr
George
Hi George -
Can you be more specific about the advice you are looking for?
Basically the xamRibbon is like any other WPF control - you can use the VS2008 forms designer to create an instance of the control on a form by dragging the xamRibbon from the VS2008 toolbox to the form. You can also add the control manually to the form by editing the form's XAML directly.
If you use the xamRibbon with a regular WPF window, the Ribbon will sit inside the bounds of the window (i.e., in the client area of the form) and will not 'merge itself' into the Window's caption as the ribbon in Office 2007 applications does. To address this we have also included a special form class call xamRibbonWindow which you can use instead of a standard WPF form. The xamRibbonWindow and the xamRibbon are smart enough to work together to allow the xamRibbon to 'merge itself' into the form's caption area. (Note that in order to use the xamRibbonWindow you will need to manually edit the standard form's XAML file to change the Window tag to a xamRibbonWindow tag since VS2008 does not allow you to create forms by dragging them from the toolbox. In the shipping product we will include a VS template for adding a new xamRibbonWindow to the project).
Hope this helps.
Joe Modica
I'm trying to do just this:
To address this we have also included a special form class call xamRibbonWindow which you can use instead of a standard WPF form. The xamRibbonWindow and the xamRibbon are smart enough to work together to allow the xamRibbon to 'merge itself' into the form's caption area. (Note that in order to use the xamRibbonWindow you will need to manually edit the standard form's XAML file to change the Window tag
But when I drop a xam ribbon onto a xamRibbonWindow - it doesn't automatically merge itself - am I missing a trick?
thanks
Andy
Actually you have to put a RibbonWindowContentHost as the Content (i.e. main element) of the XamRibbonWindow. Then set the XamRibbon as the value of the Ribbon property of the RibbonWindowContentHost. The FeatureBrowser has at least one example that uses a xamRibbonWindow that you can look at as an example and the help has an example under xamRibbonWindow and RibbonWindowContentHost.
http://help.infragistics.com/Help/NetAdvantage/WPF/2009.1/CLR3.X/html/Infragistics3.Wpf.Ribbon.v9.1~Infragistics.Windows.Ribbon.XamRibbonWindow.html