This is a migrated thread and some comments may be shown as answers.

Q3 clarification

1 Answer 35 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Josh
Top achievements
Rank 1
Josh asked on 18 Oct 2012, 01:55 PM
In reviewing the Q3 release notes, I noticed this change to the ContextMenu:
     - Changed RadContextMenu Source and OriginalSource event argument properties to be the context menu (were UIElement)

We have been casting the OriginalSource to RadMenuItem to get what item in the menu was selected.  Does this change mean that the OriginalSource will now be the RadContextMenu?  If that's the case, I'm not sure I understand why it was changed.

1 Answer, 1 is accepted

Sort by
0
Accepted
Hristo
Telerik team
answered on 18 Oct 2012, 02:11 PM
Hi Josh,

We have changed the Source and OriginalSource properties of RadContextMenu Opened and Closed events to return the RadContextMenu instance. They were returning the element which handled the MouseRightButtonUp (in case EventName is MouseRightButtonUp) and caused RadContextMenu to Open/Close. But this was different in WPF so we fix it.
ItemClick will continue to work as before - OriginalSource is the RadMenuItem that was clicked.
We should probably improve the description of this item in the release notes.

Let us know if you need more information.

Greetings,
Hristo
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Menu
Asked by
Josh
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Share this question
or