hr = videoWin.put_Owner( videoPanel.Handle );
HwndSource hwnd = PresentationSource.FromVisual(theControl) as HwndSource; if (hwnd != null) { handle = hwnd.Handle; }
<Window x:Class="WpfTutorialSamples.Audio_and_Video.MediaPlayerVideoSample" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MediaPlayerVideoSample" Height="300" Width="300"> <Grid> <MediaElement Source="http://hubblesource.stsci.edu/sources/video/clips/details/images/hst_1.mpg" /> </Grid> </Window>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)