111,119
社区成员
发帖
与我相关
我的任务
分享
<Window x:Class="VideoSurveillance.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:wf="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"
Title="MainWindow" Height="600" Width="800" Loaded="Window_Loaded" Closing="Window_Closing" WindowStartupLocation="CenterScreen" WindowState="Maximized">
<Grid>
<WindowsFormsHost HorizontalAlignment="Left" Height="300" Margin="10,10,0,0" VerticalAlignment="Top" Width="400">
<wf:PictureBox x:Name="RealPlayWnd"></wf:PictureBox>
</WindowsFormsHost>
</Grid>
</Window>
var hPlayWnd = RealPlayWnd.Handle;
求答案啊。怎么获得WPF中嵌套了winform下的picturebox控件的句柄