Hi,
I have attached an event ActivePaneChanged to the dock manager and i have no code written (blank handler). I want handle this event, but this gets fired recursively! Any idea why? any suggestion?
All I have is,
private void dockManager_ActivePaneChanged(object sender, RoutedPropertyChangedEventArgs<ContentPane> e)
{
}
Thanks,
Nagendra
in debug mode, every time the cursor moves away, the active pane changes. It works well!
Ok so just to be clear in case someone else encounters this post, I'm guessing that you had a breakpoint in the event. When the breakpoint hits the app window will be deactivated and when you resume/continue running the application the window will be activated. Since the PaneActivated event is based upon keyboard focus the breakpoint would have caused the pane to be deactivated and when you continued and the window was activated the event would be raised because the pane was activated.
Yes, very much correct!