Custom Context Menu in Created DockPanes

167
2
Jump to solution
2 weeks ago
_egbert
New Contributor

Hi everyone,

I'm currently working on a project where I've created a custom dockpane. However, I'm facing an issue regarding implementing a custom context menu within this dockpane.

I've been exploring various methods to achieve this, but haven't found a satisfactory solution yet. I need the context menu to provide specific actions based on the items within the dockpane.

If anyone has experience or suggestions on how to implement a custom context menu within a custom dockpane, I would greatly appreciate your insights or guidance. Any examples or pointers to relevant documentation would be incredibly helpful.

Thank you in advance for your assistance!

0 Kudos
1 Solution

Accepted Solutions
GKmieliauskas
Esri Regular Contributor

Hi,

If I understand correctly, you can add context menus to dockpane controls using WPF way:

ContextMenu Overview - WPF .NET Framework | Microsoft Learn

View solution in original post

0 Kudos
2 Replies
GKmieliauskas
Esri Regular Contributor

Hi,

If I understand correctly, you can add context menus to dockpane controls using WPF way:

ContextMenu Overview - WPF .NET Framework | Microsoft Learn

0 Kudos
_egbert
New Contributor

Exactly what I was looking for, thank you so much!

0 Kudos