WindowsFormsHost和弹出控件 [英] WindowsFormsHost and Popup control

查看:229
本文介绍了WindowsFormsHost和弹出控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我有WPF应用程序,在XAML文件中有一个Windowsformshost,在其中托管了Windows窗体按钮;单击此按钮后,我将启动一个包含列表框(WPF)的弹出控件(WPF),因此,当单击该按钮时,弹出框将显示列表框项目,问题是,当我尝试选择项目时从列表框中,不会触发selectionchanged事件,并且我无法从列表框中选择任何内容.

Hi,
I have WPF application, in a XAML file I have a Windowsformshost within which I am hosting a windows forms button; on click of this button, I am launching a Popup control(WPF) which contains a listbox(WPF), so when the button is clicked, the popup is shown with the listbox items, the issue is, when i try to select the items from the listbox, the selectionchanged event does not fire, and I am not able to select anything from the listbox.
could you advice on what can be done for this issue?

推荐答案

您是否已在调试器下运行它以查看尝试选择列表时发生的情况?项目?
Have you run it under the debugger to see what''s happening when you try to select a list item?


这篇关于WindowsFormsHost和弹出控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆