Ribbon button after it is clicked, the style is clicked

Ribbon for WPF Forum

Posted 11 years ago by Alain Fernandez
Version: 13.1.0580

I have this;


<Controls:Button Command="Commands:Commands.DeleteCommand"

ImageSourceLarge="/delete_32.png" />

I click the button and the style of the button changed (ii appeared like if the burtton is selected).

The problem is when i finish clicking, the style does not change and the apearence of the button is like is sellected.

How can i change this?


Comments (1)

Answer - Posted 11 years ago by Actipro Software Support - Cleveland, OH, USA

Hi Alain,

It sounds like you might be using this button outside of a Ribbon or ToolBar?  If so, the focus is probably remaining on the button after you click it and the button template does have it show a "state" background when it's focused.  To change this you could either move focus off the control after it's clicked or put it in a container that is a focus scope (FocusManager.IsFocusScope="true").

Actipro Software Support

The latest build of this product (v24.1.2) was released 3 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.