Fires when the context menu is invoked for the UIElement.
Namespace:
C1.SilverlightAssembly: C1.Silverlight (in C1.Silverlight.dll)
Syntax
C# |
---|
public event MouseEventHandler ContextMenuInvoked |
Visual Basic |
---|
Public Event ContextMenuInvoked As MouseEventHandler |
Remarks
To use this event the Silverlight plug-in should have its 'windowless' parameter set to true.
For example, if the Silverlight plug-in is declared in an aspx page, it should be edited as follows:
Copy CodeC#
<form id="form1" runat="server" style="height:100%;"> <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager> <div style="height:100%;"> <asp:Silverlight ID="Xaml1" runat="server" Source="~/ClientBin/TestM1.xap" Version="2.0" Width="100%" Height="100%" <b>Windowless="true" /></b> </div> </form> |
Copy CodeC#
<div id="silverlightControlHost"> <object data="data:application/x-silverlight," type="application/x-silverlight-2-b1" width="100%" height="100%" > <param name="source" value="ClientBin/TestM1.xap"/> <param name="onerror" value="onSilverlightError" /> <param name="background" value="white" /> <b><param name="windowless" value="true" /></b> <a href="http://go.microsoft.com/fwlink/?LinkID=108182" style="text-decoration: none;"> <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none"/> </a> </object> <iframe style='visibility:hidden;height:0;width:0;border:0px'></iframe> </div> |