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
40
xamRibbon and SCSF
posted

Hi

I want to use the xamRibbon inside my WPF/SCSF application. Any suggestions on how to best work with it?

Kr

George

Parents
  • 8576
    Offline posted

    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

Reply Children