Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6091541
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:20:23+00:00 2026-05-23T12:20:23+00:00

Hi I am creating my first WPF application that uses Ribbons. The problem I

  • 0

Hi I am creating my first WPF application that uses Ribbons. The problem I am having is I cannot change the theme of the ribbons. I want to use the Office 2007 Black theme. I have looked everywhere and everywhere I find roughly the same example, I have tried writing it from scratch, copy pasting and everything but it keeps throwing an exception when I try t run the application.

Exception

Set property 'System.Windows.ResourceDictionary.Source' threw an exception.' Line number '11' and line position '18'.

Inner Exception

{"Cannot locate resource 'themes/office2007black.xaml'."}

Xaml Code

<r:RibbonWindow x:Class="DtcInvoicer.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:r="clr-namespace:Microsoft.Windows.Controls.Ribbon;assembly=RibbonControlsLibrary"
    Title="Dtc Invoicer"
    Width="1000" Height="650" WindowStartupLocation="CenterScreen">

<r:RibbonWindow.Resources>
    <ResourceDictionary>
        <ResourceDictionary.MergedDictionaries>
            <ResourceDictionary Source="/RibbonControlsLibrary;component/Themes/Office2007Black.xaml"/>
        </ResourceDictionary.MergedDictionaries>
    </ResourceDictionary>
</r:RibbonWindow.Resources>

<Grid x:Name="LayoutRoot">
    <r:Ribbon x:Name="TopMenuRibbon" Title="First Ribbon">
        <r:RibbonTab Header="Home" />
        <r:RibbonTab Header="Company" />
        <r:RibbonTab Header="Employees" />
        <r:RibbonTab Header="Receivables" />
        <r:RibbonTab Header="Payables" />
        <r:RibbonTab Header="Inventory" />
        <r:RibbonTab Header="Settings" />
    </r:Ribbon>
</Grid>
</r:RibbonWindow>

Anyone have idea why that might be happening? The RibbonControlsLibrary is in my references, everything works fine and the ribbons come up in the blue theme until I try to switch to black or silver, then I get the exception.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T12:20:23+00:00Added an answer on May 23, 2026 at 12:20 pm

    Resources that are specific to a theme are kept in a resource dictionary with a specific file name. These files must be in a folder named Themes that is a subfolder of the folder that contains the control.

    See this MSDN article for more details.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm dealing with a problem in WPF binding. I'm creating a user control which
I'm creating my first command application in Visual Studio. I was wondering what is
I'm creating my first iPhone application (using XCode 4), and I initially created the
I'm learning the ins and outs of creating custom controls in WPF. The concepts
I am currently creating my first project using Google App Engine in Eclipse. For
I am creating my first plugin and decided to try and create a mask
I'm creating my first app for Android device and I was faced with a
I 'm creating a Line chart using WPFToolKit. The chart comes up fine but
I have a tree view. I am creating the tree view items dynamically. Each
I think I've stumbled upon a bug in the .NET (or the native windows

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.