Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

How to Attached a window(not user control) in a grid of main window

$
0
0

I want to attached a window(not user control) in the grid of main window. Basically I want to show a video in a window and this window is set into the grid of main window. How to do this. Please help me.

 

I am attaching my code. But this code is not serve my problem.

MySecond sec = new MySecond();

 sec.DetachContent();
this.MyRightGrid.Children.Add(sec.Content as UIElement);

 

 


Viewing all articles
Browse latest Browse all 18858

Trending Articles



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