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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T01:45:09+00:00 2026-05-11T01:45:09+00:00

So I’m just starting out with WPF, and I’m really annoyed by the fact

  • 0

So I’m just starting out with WPF, and I’m really annoyed by the fact that if I lay two Grids on top of one another, the top Grid isn’t opaque. It makes designing extremely annoying. Can this be turned off somehow?

I’m just building your standard Winforms STYLE application, but in WPF. I’m just trying to start bridging the gap here. In Winforms(and VB) you’d always have group boxes or something on your form, and then depending on some user context, one of those group boxes would be on top. Its how I’ve designed forms since time immemorial. One of two things must be true here:

A) This is not the recommended way to design Windows going forward with WPF, but I don’t understand what you’re supposed to do

B) There is some property to make the Grids opaque so I can build the Window in the style that I’m used to.

I’m fine with answers that solve either A or B. If I’m not doing things the right way because they’ve changed, then please enlighten me.

Update: So it turns out, I can make the grid opque by setting the background color, but now it seems like I’m locked into a White background as opposed to sticking with the system colors.

  • 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. 2026-05-11T01:45:10+00:00Added an answer on May 11, 2026 at 1:45 am

    You could use SystemColors to make the control background colour match (rather than being white).

    I don’t understand why you want to put one grid on top of another though. In WPF you generally use a single grid to stack multiple visual elements within one region. Can you explain why you want to hide things in the background with foreground elements?

    It sounds a little like you’re implementing a tab control — switching between pages of controls depending on focus. Have you experimented with the new TabControl?

    I’m moving from WinForms to WPF development wherever possible and have found that in doing so it’s taken some readjustment. WPF has a completely different way of laying things out and now that I’m more comfortable with it, I think it’s superior. I’m guessing you just need to ride the learning curve a little longer.

    Hope that helps.

    EDIT: In response to your comment, I imagine you can have a tab control without tabs, though I haven’t tried it myself (might be worthy of another question on SO). Tab controls are headered controls, meaning that they have a header item and a content item. In this case, the header is the tab button, the content is the page item. You can specify a ControlTemplate that details how these items should be displayed relative to one another.

    Interestingly, many other types of common GUI element are also headered controls:

    • Menu items – The menu item text/icon is the header, and the optional submenu is the content
    • Tree view – Each node is the header, and optional children are within the content
    • Group box – The header is, well, the header and the content is, well, the content 🙂

    Note that in the case of menu items and tree views, the type may recursively nest within itself. This is quite elegant and can give some wildly different presentation options over the same logical model with only changes to the control template.

    For more information read about HeaderedContentControl and HeaderedItemsControl

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

Sidebar

Ask A Question

Stats

  • Questions 66k
  • Answers 66k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer The extra pointer is unnecessary. The array (which basically is… May 11, 2026 at 11:31 am
  • added an answer Use static ParseQueryString method of System.Web.HttpUtility class that returns NameValueCollection.… May 11, 2026 at 11:31 am
  • added an answer If a subdomain is for some reason not a possible… May 11, 2026 at 11:31 am

Related Questions

So I'm getting a new job working with databases (Microsoft SQL Server to be
So I have a Sybase stored proc that takes 1 parameter that's a comma
So I'm embarking on an ASP.NET MVC project and while the experience has been
So I've got a JPanel implementing MouseListener and MouseMotionListener : import javax.swing.*; import java.awt.*;
So I wrote some perl that would parse results returned from the Amazon Web
So I just fixed a bug in a framework I'm developing. The pseudo-pseudocode looks
So I'm not quite convinced about OpenID yet, and here is why: I already
So I was listening to the latest Stackoverflow podcast ( episode 19 ), and
So I am writing a registration form and I need the display name to
So I've looked at this use of the freebase API and I was really

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.