Ribbon button after it is clicked, the style is clicked

Ribbon for WPF Forum

Posted 6 years ago by Alain Fernandez
Version: 13.1.0580
Avatar

I have this;

xmlns:Controls="clr-namespace:ActiproSoftware.Windows.Controls.Ribbon.Controls;assembly=ActiproSoftware.Ribbon.Wpf351"

<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?

Regards

Comments (1)

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

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 (v2019.1 build 0683) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.