The wpf panel control doesn't have handle but you can use windows forms panels in wpf to.
Edit:
First you should add reference to
WindowsFormsIntegration (for the WindowsFormsHost)
and System.Windows.Forms (for the panel).
Then you should add an xmlns to your xaml file.
xmlns:WinForms="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"
than your xaml file would look like something like:
<Window x:Class="TestWpf.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:WinForms="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"
Title="MainWindow" Height="350" Width="525">
<Grid>
<WindowsFormsHost>
<WinForms:Panel x:Name="videoPanel"></WinForms:Panel>
</WindowsFormsHost>
</Grid>
</Window>
then you can use the panel in your code behind like in window forms
videoPanel.Handle
Old:
You could do it in code like
WindowsFormsHost host = new WindowsFormsHost();
host.Child = wfPanel;
this.gridPreview.Children.Add(host);
from url:
panle handle in wpf[
^]
Or in xaml code
<WindowsFormsHost Height="100" HorizontalAlignment="Left" Margin="10,108,0,0" Name="windowsFormsHost1" VerticalAlignment="Top" Width="200">
<WinForms:Panel BackColor="Red" Dock="Fill">
</WinForms:Panel>
</WindowsFormsHost>