Ribbon button inside tool window looks checked

Ribbon for WPF Forum

The latest build of this product (v25.1.2) was released 1 month ago, which was before this thread was created.
Posted 3 days ago by Daniel Constantin - ModuleWorks GmbH
Version: 25.1.2
Avatar

Hi!

I have some ribbon buttons inside a tool window.

The problem is every time the tool window is selected/focused, the last ribbon button which was pushed looks as if it is checked even though the button has no binding to the IsChecked property.

Kind regards,

Daniel

Comments (1)

Posted 3 days ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

When a tool window is activated by a tab or title bar click, it tries to focus the last control that had focus within it.  In this case, it sounds like the ribbon button may have been that last control.  I'm not sure what your control setup is, but perhaps your button click logic could focus another control within the tool window first, and then execute the normal button click logic.  That way if your normal button logic moves focus out of the tool window, the control that should be focused next time the tool window is activated will be the one you focused above.


Actipro Software Support

Add Comment

Please log in to a validated account to post comments.