Binding to Element's Visibility value

Posted by plotnick on Stack Overflow See other posts from Stack Overflow or by plotnick
Published on 2010-04-02T16:19:54Z Indexed on 2010/04/02 16:23 UTC
Read the original article Hit count: 380

Filed under:
|
|

I have a checkable DropDownButton and a Grid.

I want to bind Button's IsChecked parameter with grid's Visibility value.

If (Visibility == Visible) IsCheked = true

I've tried to do like that:

IsChecked="{Binding ElementName=UsersDockWindow, Path=IsVisible}"

but it didn't work, cause IsVisible is readOnly property.

© Stack Overflow or respective owner

Related posts about wpf

Related posts about binding