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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:52:50+00:00 2026-06-18T01:52:50+00:00

I have a Grid whose Visibility property is bound to a boolean property of

  • 0

I have a Grid whose Visibility property is bound to a boolean property of a certain model using a Converter:

<Grid Visibility="{Binding ElementName=MyTreeView, Path=SelectedItem.MyBoolProperty, Converter={StaticResource boolToVisConverter}}">
    <!-- child elements -->
</Grid>

It works great when an element in my TreeView is selected, but if nothing is selected or the TreeView is empty it defaults to being visible. I need it to be hidden by default. I’ve tried using TargetNullValue=Hidden but it isn’t working. I guess I just don’t understand how the TargetNullValue property is supposed to work in this situation.

Does anybody have any ideas how to get the functionality I am looking for?

  • 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-18T01:52:51+00:00Added an answer on June 18, 2026 at 1:52 am

    I spent hours trying to figure this out. Then, of course, right after I post the question I get it working using FallbackValue=Hidden on the Binding property of the Grid.

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

Sidebar

Related Questions

I have a ComboBox whose properties ItemsSource and SelectedValue are bound to a model.
I am using vb.net code. I have grid view, please see the code below:
I have a grid where first 2 columns are bound with ForeignKey (Category and
I have a Silverlight 3 application the inside of whose grid layout root looks
is it possible to have infinte scrolling in a extJS (4.1) grid, whose data-store
I have a DataGrid whose ItemsSource is bound to a changing Observable Collection. Inside
I have a datagrid whose itemsSource is bound to a multiconverter which uses a
I am using vb.net 2010. I have a datagridview whose data source is a
I have a WPF Data Grid bound to an observable collection, which is working
I have a Grid whose Rows & cols are populated dynamically. To delete a

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.