首先需要引用一个开源的程序集,叫做WPFMediaKit.dll
xmal文件也需要添加引用,代码如下
<Window x:Class="HRMsys.UI.test"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:wpfmedia="clr-namespace:WPFMediaKit.DirectShow.Controls;assembly=WPFMediaKit"
Title="test" Height="300" Width="300" Loaded="Window_Loaded_1">
<Grid>
<StackPanel>
<ComboBox Name="cb" SelectionChanged="cb_SelectionChanged"></ComboBox>
<wpf