WPF bind IsEnabled on other controls if a listbox has a select item

Posted by the empirical programmer on Stack Overflow See other posts from Stack Overflow or by the empirical programmer
Published on 2010-06-01T20:30:03Z Indexed on 2010/06/01 20:53 UTC
Read the original article Hit count: 135

Filed under:
|

I have a grid with 2 columns, a listbox in column 0 and a number of other controls in the a secondary grid in the main grids column 1.

I want this controls only to be enabled (or perhaps visible) if an items is selected in the listbox through binding. I tried on a combo box:

IsEnabled="{Binding myList.SelectedIndex}"

But that does not seem to work.

Am I missing something? Should something like this work?

thanks

© Stack Overflow or respective owner

Related posts about wpf

Related posts about databinding