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 4065410
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T15:58:46+00:00 2026-05-20T15:58:46+00:00

In the application I am working on a requirement is to have support for

  • 0

In the application I am working on a requirement is to have support for windows themes (Aero, Classic, Luna).

I have a few custom controls which I want to respect the current theme.

I have created themes-folder and placed

/themes/classic.xaml
/themes/luna.normalcolor.xaml
/themes/aero.normalcolor.xaml
/themes/generic.xaml

In the AssemblyInfo.cs of the project containing the custom controls I have defined ThemeInfo as the following:

[assembly: ThemeInfo(
    ResourceDictionaryLocation.SourceAssembly, 
    ResourceDictionaryLocation.SourceAssembly 
)]

When I change theme in windows, all standard controls switch theme, but my custom controls refuses to read from anything but generic.xaml

Am I missing anything obvious here?

  • 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-20T15:58:46+00:00Added an answer on May 20, 2026 at 3:58 pm

    Some things to check:

    1. I’m not sure if the capitalization matters, but I usually see it as “Themes/Aero.NormalColor.xaml” etc.

    2. Verify the Build Action for your XAML files is “Page”. To do this, select them and press F4.

    3. The theme will not switch if your application is running. Most the native WPF control leverage the SystemColors class. Which means they may switch colors when the theme changes, but the Style/ControlTemplate won’t be changed.

    If those don’t help, you’d probably need to post additional code, such as how your custom control overrides DefaultStyleProperty and a sample Style.

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

Sidebar

Related Questions

I am working on an application in which i have a requirement of detect
Am working on an application which has a requirement to download bulk data from
I have a couple of needs in my application for which working on edge
I have a requirement to create a web based application, which is hosted on
I have an application, which works with Resources for translation. This is working great.
I am working on a web services application. I have a requirement to throw
i have been working on developing an blackberry application. as per now i want
In an application I'm working on, I have the requirement that a user must
i am working in a web application using java language.i have a requirement to
I have an ASP.NET application I am working on. One of the requirements of

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.