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.