I have a simple wpf panel (user control) which shows a list of items in a panel.
I want to show it in the mouse right click event in side another panel(user control)
How can I do that,
this is wat i have tried
protected override void OnMouseRightButtonDown(MouseButtonEventArgs e)
{
contextMenuPanel c = new contextMenuPanel();
c.Open = true;
c.Visibility = Visibility.Visible;
}
contextmenupanel is a seperate wpf user control.
And i am trying to add it into a grid of another wpf user control named wall.
please help with with this,
And i am using rad controls also. When i add the menu directly it adds to the wallpanel. I used
<dock:RadPane x:Name="ContextMenu1" Header="ContextMenu" Title="ContextMenu" CanUserClose="True">
<Assembly:contextMenu x:Name="contextMenu" />
</dock:RadPane>