Accessing the popup context menu...

SyntaxEditor for Silverlight Forum

Posted 14 years ago by Jason Sobell
Version: 10.1.0101
Avatar
Is there any way to add entries to the built-in context sensitive popup menu?
I can't work out where or if this is associated with the syntax editor.

Cheers,
Jason

Comments (1)

Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hello,

The SyntaxEditor’s context menu can be changed by setting the ContextMenuService.ContextMenuProperty attached property on the SyntaxEditor instance. The ContextMenuService class is defined in the Actipro Shared Library.

Because the original context menu is set up in an OnLoaded handler of SyntaxEditor, you will need to set up your replacement context menu in an OnLoaded handler of the SyntaxEditor instance, or at another point after the OnLoaded event is handled.

Please let us know if you have further questions.


Actipro Software Support

The latest build of this product (v18.1 build 0233) was released 4 years ago, which was after the last post in this thread.