Click here to Skip to main content
13,006,195 members (78,466 online)
Rate this:
Please Sign up or sign in to vote.
See more:
Using the below

throws below error
The type or namespace name 'PopularApplicationSkins' does not exist in the namespace 'Microsoft.Windows.Controls.Ribbon'
Posted 17-Jan-12 2:07am
Updated 17-Jan-12 2:20am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Check your version of the Ribbon library. If you are using a version from 2010 or later, the themes are no longer present in the namespace nor does the ribbon support the themes anymore. MSDN's reference documentation no longer references the themes in the Ribbon's documentation.

I believe the only workaround is a third-party ribbon control that does support themes or to override the default style and define the theme in xaml.
Francis Pradeep Kumar 18-Jan-12 7:02am
Thanks Jason, One more question

is the <ribboncommand> tag also removed from the latest version of Ribbon Library ????

See the below code sample, it throws error as "The type r:RibbonCommand is not found".

<r:RibbonCommand LabelTitle="Clipboard"
SmallImageSource="images/clipboard.png" />

<r:RibbonButton Command="{StaticResource CutCommand}" />
<r:RibbonButton Command="{StaticResource CopyCommand}" />
<r:RibbonButton Command="{StaticResource PasteCommand}" />
Jason Gleim 18-Jan-12 8:58am
I didn't see a code sample. However, the error message looks like a xaml namespace problem. Is the 'r' namespace defined at the top of the xaml in the usercontrol or resource dictionary opening tag?

You can also open the RibbonControl library in the object browser to see all the properties, methods, and classes exposed in that namespace. that might be helpful as well.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170628.1 | Last Updated 17 Jan 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100