Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: WPF C#4.0 Ribbon
Using the below
 this.Resources.MergedDictionaries.Add(PopularApplicationSkins.Office2007Black);
throws below error
The type or namespace name 'PopularApplicationSkins' does not exist in the namespace 'Microsoft.Windows.Controls.Ribbon'
Posted 17-Jan-12 3:07am
Edited 17-Jan-12 3:20am
v2

1 solution

Rate this: bad
good
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.
  Permalink  
Comments
Francis Pradeep Kumar at 18-Jan-12 7:02am
   
Thanks Jason, One more question
 
is the 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".
 







Jason Gleim at 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
0 OriginalGriff 365
1 Sergey Alexandrovich Kryukov 334
2 CPallini 275
3 DamithSL 230
4 Maciej Los 215
0 OriginalGriff 5,455
1 DamithSL 4,457
2 Maciej Los 3,885
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,115


Advertise | Privacy | Mobile
Web03 | 2.8.141216.1 | Last Updated 17 Jan 2012
Copyright © CodeProject, 1999-2014
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