The MouseRightButtonDown option for a contextmenu on a grid doesn't seem to work when the grid is on a Silverlight ChildWindow. The application is running on the Windows platform, and it works well when ChildWindows are not involved.
Is there a solution for this problem? Thanks.
2 Answers, 1 is accepted
answered on 23 Oct 2009, 07:20 AM
As you probably know Silverlight doesn't offer support for RightClick. So we made some workaround to catch right click from the browser (this is why right click is working only in windowless mode). All our controls that are using Popups to show as RadWindow are registered in a special collection and when you click with the right button we are going through all opened popups to see if there is an element that is listening to right click.
ChildWindow popup is not registered in our collection of opened popups so it is normal to not get notified. As a workaround I can suggest you to use RadWindow.
It should be possible to switch to RadWindow, but some forms are giving me a "Value does not fall within the expected range.". It basically happens because I'm trying to load a usercontrol containing a GridView into the RadWindow at runtime.
Ctor of RadWindow: LayoutRoot.Children.Add(viewToLoad);