我正在使用ElementHost在WinForms控件中承载一个WPF用户控件。我的WPF控件有DropShadowEffect,但它没有显示在屏幕上。WPF控件是平面控件。我该怎么办?下面是我的代码:{ elementHost1= new ElementHost() { Child = new MyWPFUserControl(), AutoSize=true};
当我试图将播放机添加到ElementHost时,我得到了以下错误
“System.Windows.Controls.MediaElement”到ElementHost host = new ElementHost();
System.Windows.Controls.MediaElement player = new System.Windows.Controls.MediaElement