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

Set Visual Studio as the owner of Another WPF Application Window

$
0
0

Hi,

My solution has 2 projects, 1 standalone WPF Application, and 1 Visual Studio extension that add a menu item to Tools menu. When the menu item is clicked, it will launched the standalone WPF Application.

I am looking to use WindowInteropHelper in the WPF Application like this:

var helper = new WindowInteropHelper(myWindow);       

helper.Owner = ownerHandle;


The ownerHandle should be the handle of Visual Studio main window. How do I get this handle?


Viewing all articles
Browse latest Browse all 4410

Trending Articles



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