Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
405
How to eliminate delay in checking a menu item checkbox
posted

I am using Infragistics default style for XamContextMenu.

The context menu items have checkboxes. The issue is that when a user clicks the checkbox, the check mark takes a few moments to appear. I know this is/can be controlled via the ResourceDictionary style were are using (which was taken initially from the one used by the Infragistics Samples application). But I am unable to determine what controls this behavior.

In that attached sample app, if you right-click on the menu to get the context menu to appear, when you click a menu item the check mark has a slight delay before it is rendered. How can this be made so that the check mark appears as soon as user clicks the checkbox?

Thank you for any help.

--Pat

xamMenuFun.zip
Parents
No Data
Reply
  • 22015
    Verified Answer
    posted

    Hello Pat,

     Thank you for your post. I have been looking into it. In out samples application the IG theme is used as style for the controls. It seems, that there in those themes there is a style for the Checkbox itself, that sets the duration for the animation, when the Checkbox is checked and unchecked.

     I have created a small sample for you to show you this style. In the sample application I am using the default style for the XamMenu and add the above mentioned style. The style is named ‘CheckboxStyle’ and in the setter for the Template property you can see the VisualStateGroup, that determines how fast the checkmark should appear.

     Please find the attached sample application and feel free to let me know if you have any further questions on this matter.

    Menu_Checkboxes.zip
Children