I am using ElementHost Control to embed a custom WPF control that I have created into a windows from application. Earlier I was able to debug the WPF control by pressing the F11 button when the control was created:

MyControl.UserControl1 obj = new MyControl.UserControl1(_Action, true);
elementHost1.Child = obj;
elementHost1.Dock = DockStyle.Fill;

But now I am trying to debug the same code after migrating from XP to Windows 8 machine and I am not able to enter into the debug mode for WPF control. Can any one please help me with this. Thanks

有帮助吗?

解决方案

On debug, right click on the line and uncheck "Step over properties and operators" Step over property

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top