Hello,
I have problem with RadContextMenu. I dont know why but every time I hit right mouse button I see following menu instead of RadContextMenu.
http://cid-999e654c8fe6b888.office.live.com/self.aspx/.Public/SilverlightContextMenu.png
I use following code:
--------------------------------------------------------------------------------------------------------------
<UserControl x:Class="AdministrationClient.ArticleListPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="400" xmlns:my="clr-namespace:AdministrationClient" xmlns:telerikGridView="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView">
<Grid x:Name="LayoutRoot" Background="White">
<telerikGridView:RadGridView Name="articles" AutoGenerateColumns="False" SelectionMode="Extended" CanUserFreezeColumns="False" RowActivated="articles_RowActivated" KeyDown="articles_KeyDown" Deleting="articles_Deleting" MouseRightButtonDown="articles_MouseRightButtonDown">
<telerikNavigation:RadContextMenu.ContextMenu>
<telerikNavigation:RadContextMenu x:Name="ContextMenu" ItemClick="ContextMenu_ItemClick"
Opened="ContextMenu_Opened">
<telerikNavigation:RadMenuItem Header="New Child" />
<telerikNavigation:RadMenuItem Header="New Sibling" />
<telerikNavigation:RadMenuItem IsSeparator="True" />
<telerikNavigation:RadMenuItem Header="Edit" />
<telerikNavigation:RadMenuItem Header="Delete" />
<telerikNavigation:RadMenuItem IsSeparator="True" />
<telerikNavigation:RadMenuItem Header="Select" />
</telerikNavigation:RadContextMenu>
</telerikNavigation:RadContextMenu.ContextMenu>
<telerikGridView:RadGridView.Columns>
<telerikGridView:GridViewDataColumn DataMemberBinding="{Binding Name}" Header="Name"/>
<telerikGridView:GridViewDataColumn DataMemberBinding="{Binding AccessLevel}" Header="Access Level"/>
<telerikGridView:GridViewDataColumn DataMemberBinding="{Binding Created}" Header="Created"/>
<telerikGridView:GridViewDataColumn DataMemberBinding="{Binding Changed}" Header="Changed"/>
<telerikGridView:GridViewDataColumn DataMemberBinding="{Binding FrontPage}" Header="Front Page"/>
<telerikGridView:GridViewDataColumn DataMemberBinding="{Binding PublicationDate}" Header="Publication Date"/>
<telerikGridView:GridViewDataColumn DataMemberBinding="{Binding ExpirationDate}" Header="ExpirationDate"/>
<telerikGridView:GridViewDataColumn DataMemberBinding="{Binding Edit}" Header="Edit"/>
<telerikGridView:GridViewDataColumn DataMemberBinding="{Binding Delete}" Header="Delete"/>
<telerikGridView:GridViewDataColumn DataMemberBinding="{Binding Print}" Header="Print"/>
<telerikGridView:GridViewDataColumn DataMemberBinding="{Binding ExportToPdf}" Header="Export To PDF"/>
</telerikGridView:RadGridView.Columns>
</telerikGridView:RadGridView>
</Grid>
</UserControl>
--------------------------------------------------------------------------------------------
My project is Silverlight 4 project and I use RadControls_for_Silverlight_3_2010_1_0422_DEV.msi
Thank you very much for your help.