System.ComponentModel.DesignerProperties.GetIsInDesignMode does not work if the WPF is hosted on a WinForm - by Sergiu Dudnic

Status : 

  Won't Fix<br /><br />
		Due to several factors the product team decided to focus its efforts on other items.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 620001 Comments
Status Closed Workarounds
Type Bug Repros 2
Opened 11/8/2010 11:46:59 AM
Access Restriction Public


System.ComponentModel.DesignerProperties.GetIsInDesignMode does not work if the WPF is hosted on a WinForm
Sign in to post a comment.
Posted by Microsoft on 11/18/2010 at 6:25 PM
Thank you for reporting this issue. Customer feedback is a critical part of a successful, impactful software product. Unfortunately another part is the reality of schedules and the need to prioritize investments according to the objectives of the product. We have evaluated the issue that you have reported and at this point in the product's lifecycle, it does not meet the criteria to be addressed. This evaluation is carefully done and considers many aspects including the cost of the fix, implications of the change, and the number of reported instances of the issue.

Many customers have found it useful to discuss issues like this in the forums ( where Microsoft and other members of the community can recommend ways of achieving the behavior you are interested in.

Thank you,
The Windows Forms Product Team
Posted by Microsoft on 11/9/2010 at 11:23 PM
Thanks for your feedback.
We are routing this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.
Posted by Sergiu Dudnic on 11/9/2010 at 3:33 AM
I attached the test project solution. Just open the (WinForm) UserControl1 in the designer.


I fact, you should create a WinForm User Control, and put inside a WPF control.

In the WpfControl's constructor put a test of DesignMode.

Add your WpfControl to the WinForm UserControl.

You will see that your WpfUserControl hosted inside a WinForm UserControl is Runtime-Positive in Designer.

But should Design-Positive.
Posted by Microsoft on 11/9/2010 at 1:13 AM
Thank you for reporting this issue. Unfortunately, we are unable to reproduce the issue with the steps you provided.

Could you please provide us with the following information?

1. A vedio to show this issue
2. A sample project zip if possiable

It would be greatly appreciated if you could provide us this information as quickly as possible.

Thank you,
Posted by Microsoft on 11/8/2010 at 12:25 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(