Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

SDK Package: Trying to get correct id for XAML editor context menu

$
0
0

I am writing a VS 2012 package and I want to add a new option to the XAML code editor window.  I am using EnableVSIPLogging to find the ids for the menus.

I have done the same with the code editor context menu and it works, my new option appears ok on the menu:
The logging info shows the CmdID = 1037 which in hex is 40D and looking in C:\Program Files (x86)\Microsoft Visual Studio 11.0\VSSDK\VisualStudioIntegration\Common\Inc\vsshlids.h this is IDM_VS_CTXT_CODEWIN

<Group guid="guidAJCVSWPFCodeCmdSet" id="MyCodeGroup" priority="0x0600"><Parent guid="guidSHLMainMenu" id="IDM_VS_CTXT_CODEWIN"/></Group>

Now I try and do the same with the XAML code editor context menu:
The logging info shows the CmdID = 259 which in hex is 103 and looking in vsshlids.h this is IDG_VS_MM_BUILDDEBUGRUN which does not sound correct to me.  I try it and it does not work, my new option does not appear on the XAML code editor context menu.

Why does this logging info not work for the XAML editor context menu?

How can I find the correct ID to use for the XAML editor menu?

Thanks


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>