VisualStudio XAML Live Debugging Tools in UWP

Azat Tazayan 6 Reputation points
2021-03-30T12:22:57.243+00:00

I'm trying to create some in app menu tool like the one "Visual Studio XAML Live Debugging" has

82791-image.png

This menu is working bot for WPF and UWP, I did some researches how is done in VS. My findings are that VS uses "Microsoft.VisualStudio.DesignTools.WpfTap.dll" and "Microsoft.VisualStudio.DesignTools.UwpTap.dll" dll's form "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\XamlDiagnostics" for this functionality. The WPF case is pretty simple VS loads that dll to debugged process and creates separate window (HWND) for hosting this menu. But for UWP the things are a little bit complicated the VS also loads the UwpTap.dll to debugged process but in this case this menu is not separate window (HWND) I checked with Spy++. The UwpTap.dll contains InAppMenu XAML as resource (Checked with DotPeek ) and this XAML is used display menu content. My questions is how this Menu (XAML) is attached to UWP app CoreWindow but the app XAML tree not changed that mean there is some other technology ? How can I show such menu in any UWP app?. Could someone help me.

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
42,006 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Nico Zhu (Shanghai Wicresoft Co,.Ltd.) 12,866 Reputation points
    2021-03-31T06:08:28.293+00:00

    Hello, Welcome to Micorosoft Q&A,

    Currently, Microsoft Q&A supports the products listed over here: supported topics (more to be added later on). Above case description is about Visual Studio tool working principle for UWP xaml window, and it is out of the support scope. We suggest you post this problem in Visual Studio forum or send the feed back with Visual Studio.

    Thanks
    Nico Zhu


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.