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

  • Home
  • SEARCH
  • 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 6055601
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:16:58+00:00 2026-05-23T08:16:58+00:00

Basically, I have a panel that draws its children based upon a DependencyProperty (FooProperty).

  • 0

Basically, I have a panel that draws its children based upon a DependencyProperty (FooProperty).

If FooProperty is true, the child is arranged; otherwise, it is not arranged. The first passthrough is fine, but when a child changes it’s FooProperty from true (draw) to false (don’t draw) the ArrangeOverride method skips it and the child remains drawn.

I figure instead of skipping the children that should not be drawn I need some way to undraw them?

  • 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-23T08:16:59+00:00Added an answer on May 23, 2026 at 8:16 am

    You don’t “undraw” a child item. What happens is when something triggers the ArrangeOverride pass you simply do your math to draw/redraw it.

    If you want to “pseudo skip” the item, you can’t. Once it is drawn it must be redrawn. But, you can always draw it at Point(0, 0) with a Rect(0, 0). Basically you’re boxing it into nothing there.


    So is there a way to “truly” undraw the item? Yes, remove it from the collection of InternalChildren somehow. You can do this by removing the item from the Visual Tree or if you’re panel is the host panel to an ItemsSource you can remove that item from the ItemsSource collection.

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

Sidebar

Related Questions

Basically I have a GUI that inherits from the JFrame class and has its
i have a div on a web page that basically acts as a panel
I basically have 7 select statements that I need to have the results output
So I thought that an enum would help me with States. Basically, I have
I have a dynamically created button that is being added to an update panel
So I have a ExtJs 4 Grid Panel that has two columns. Column ONE
I have a JSF page that is basically a create form. The form consists
I have created a custom panel (MyCustomControl) that can contain other controls and be
In every window/panel I have the Enter key mapped as the defaultButton (meaning that
basically I am trying to model some map brushes that have the following format:

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.