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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T16:37:20+00:00 2026-06-13T16:37:20+00:00

As test I changed the style of few elements by adding a new style

  • 0

As test I changed the style of few elements by adding a new style in App.xaml (Application.Resources) and it is over writing a style defined in a window.

Now, I am wondering if there is any exception in this? meaning that in a WPF application (let’s assume we have 3 windows w1, w2, w3) can we apply the style defined in app.xaml only to windows 1 and 2 and then 3 keep its own style intact from its local ResourceDictionary block or any other source?

  • 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-06-13T16:37:21+00:00Added an answer on June 13, 2026 at 4:37 pm

    There are two approaches you can use:

    1. Put the style in Window1 and Window2 explicitly, and not in Window3. This will cause the styles to only exist within those windows. A Merged Resource Dictionary is a good approach here, as you can define the style once and just “import” it as needed.
    2. Put a new style in Window3 that will overwrite the style in App.xaml. The styles used is determined by walking up the tree in Xaml until an appropriate style is found. If Window3 has it’s own style, it will “override” the style in the application’s xaml files.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my test app, I want to style variable height table cells with a
Possible Duplicate: Dynamically adding collapsible elements I've seen a few posts on this but
Using the new Rhino Mocks 3.5 Arrange/Act/Assert (AAA) Testing style, I'm having problems writing
In one of my friend project he changed eclipse WebContent name to test, in
I am new to Jquery and in learning phase. I have written a test
Okay, something just went crazy. Unless China is taking over starting with my test
I'm writing a scheduling application that uses JQuery UI extensively. One of the requirements
I am trying to refresh/update the UI of a Metro Style app to reflect
Here is an example: $(function() { $('#test').change(function() { $('#length').html($('#test').val().length) }) }) <script src=https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js></script> <textarea
How do I change validates_numericality_of :test, :greater_than_or_equal_to=>0 into validate form I tried only character

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.