views:

1135

answers:

3

How to use the Ribbon control in WPf toolkit in my XAML?

How to include the namespaces for ribbon in XAML?

A: 

As per the walkthrough:

<r:RibbonTab Label="Banking">
    <r:RibbonGroup>
        <r:RibbonButton Command="me:AppCommands.Cut"/>
        <r:RibbonButton Command="me:AppCommands.Copy"/>
        <r:RibbonButton Command="me:AppCommands.Paste"/>
    </r:RibbonGroup>

    <r:RibbonGroup>
        <r:RibbonButton Command="me:AppCommands.AddNew"/>
        <r:RibbonButton Command="me:AppCommands.Clear" />
        <r:RibbonButton Command="me:AppCommands.Delete"/>
    </r:RibbonGroup>

    <r:RibbonGroup>
        <r:RibbonButton Command="me:AppCommands.DownloadStatements"/>
        <r:RibbonButton Command="me:AppCommands.DownloadCreditCards"/>
        <r:RibbonButton Command="me:AppCommands.Transfer"/>
    </r:RibbonGroup>
</r:RibbonTab>

HTH, Kent

Kent Boogaart
How to include the namespaces for ribbon in XAML?
Sauron
A: 

I did work with Ribbon for a considerable amount of time. Nothing beats these tutorials.

http://www.uxpassion.com/2009/08/wpf-ribbon-control-roadmap-and-look-into-the-future/

And for the namespace problem, include a reference to RibbonControlsLibrary.dll in your project, and use the following line to point to the namespace.

xmlns:r="clr-namespace:Microsoft.Windows.Controls.Ribbon;assembly=RibbonControlsLibrary"

Trainee4Life
A: 

Good link Trainee4Life, just like this one.

juFo