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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T07:23:18+00:00 2026-05-13T07:23:18+00:00

Okay here is a softball beginner WPF question. By default the background of the

  • 0

Okay here is a softball beginner WPF question.

By default the background of the window is white. I’m trying to hack in an error reporting form and I want to emulate the more standard windows look and feel.

Any easy way to grab the default color for the background?

  • 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-13T07:23:19+00:00Added an answer on May 13, 2026 at 7:23 am

    Using the SystemColors class and specifically the WindowColor property. When using xaml it is better to use DynamicResources and therefore use the …Key properties. That way your application changes in the fly when the user changes the color in Windows.

    <Window>
      <Window.Background>
        <SolidColorBrush Color="{DynamicResource {x:Static SystemColors.WindowColorKey}}">
        </SolidColorBrush>
      </Window.Background>
    </Window>
    

    Using the …BrushKey properties makes it easier to use when in need of a brush

    <Window Background="{DynamicResource {x:Static SystemColors.WindowBrushKey}}">
    </Window>
    

    PS: WPF Windows should already have the correct color by default

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

Sidebar

Related Questions

Okay so here is the deal. As the question states, I'm trying to POST
Okay here is what I'm trying to do: I have a model object that
Okay this is definitely a n00b question but here goes. The way I understand
Okay here's the question, using C# I need to create a program using a
Okay here is what I'm, trying to do I want to escape the period
Okay, so here is what I'm trying to do. The user inputs a number.
Okay so here's the scenario: User is presented with form that contains file inputs.
Okay so here is a random error. I'm dynamically adding images to an html
Okay here's the situation. Net 4 WPF NO Silverlight. I have several Views that
okay so here is my problem in my main project I'm trying to fire

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.