Strange behavior in DockPanel

Posted by plotnick on Stack Overflow See other posts from Stack Overflow or by plotnick
Published on 2010-04-09T16:11:17Z Indexed on 2010/04/09 16:13 UTC
Read the original article Hit count: 416

Filed under:
|
|
|

I don't understand, I have a toolbar with buttons bind to custom commands.

Also I have an expandable control docked to the left of window - kinda NavPanel. (Devcomponents' NavigationPane to be exact)

Now, everytime when it's collapsed or expanded, buttons in the toolbar become disabled and stay like that till the focus changes.

Of course, it's simple to change the focus inside Collapsed and Expanded events, but unfortunately it works only in the first and ignores the second one and all buttons stay disabled.

It seems that it something to do with CommandTarget which I haven't define nowhere. Maybe I should? Any ideas?

© Stack Overflow or respective owner

Related posts about wpf

Related posts about dockpanel