Posted 16 years ago
by Anurodh Ora

Hi,
We are creating the (Ribbon)context menu dynamically by handling right click event of our custom control. After all menus are created, for displaying we are setting ContextMenu.IsOpen property to true.
For each "right click" event first we clear the context menu items list and then creating new one but some how it first showing previous context menu list and just after that it shows current newly created menu item list. This looks like flickering.
We handled the context menu's "Closed" event where also we are clearing the menu items list but still we are getting flickering.
Please suggest how can we avoid this flicker effect?
We are creating the (Ribbon)context menu dynamically by handling right click event of our custom control. After all menus are created, for displaying we are setting ContextMenu.IsOpen property to true.
For each "right click" event first we clear the context menu items list and then creating new one but some how it first showing previous context menu list and just after that it shows current newly created menu item list. This looks like flickering.
We handled the context menu's "Closed" event where also we are clearing the menu items list but still we are getting flickering.
Please suggest how can we avoid this flicker effect?