WPF Custom Control: Custom control is not visible in the designer + .Net 3.5 SP1 frameworkHi,<br><br>I have designed custom control, which is inherited from 'System.Windows.Controls.Control'. I have defined the theme for it to change its appearance. in the static constuctor I have added following code.<br><br>Static  MyCustomControl (){<br>             DefaultStyleKeyProperty.OverrideMetadata(typeof(MyCustomControl),   <br>                                  new FrameworkPropertyMetadata(typeof(MyCustomControl)));<br>}<br><br>When I drag and drop the control, It does not appear in the designer. <br>Can any one tell me, What could be the reason for such behavior?<br><br><br>Regards,<br>Bharath<br><br><br> © 2009 Microsoft Corporation. All rights reserved.Tue, 30 Jun 2009 00:55:30 Z8db51500-9f37-434b-84b8-1c1ecd9fb738http://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/8db51500-9f37-434b-84b8-1c1ecd9fb738#8db51500-9f37-434b-84b8-1c1ecd9fb738http://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/8db51500-9f37-434b-84b8-1c1ecd9fb738#8db51500-9f37-434b-84b8-1c1ecd9fb738BGanhttp://social.msdn.microsoft.com/Profile/en-US/?user=BGanWPF Custom Control: Custom control is not visible in the designer + .Net 3.5 SP1 frameworkHi,<br><br>I have designed custom control, which is inherited from 'System.Windows.Controls.Control'. I have defined the theme for it to change its appearance. in the static constuctor I have added following code.<br><br>Static  MyCustomControl (){<br>             DefaultStyleKeyProperty.OverrideMetadata(typeof(MyCustomControl),   <br>                                  new FrameworkPropertyMetadata(typeof(MyCustomControl)));<br>}<br><br>When I drag and drop the control, It does not appear in the designer. <br>Can any one tell me, What could be the reason for such behavior?<br><br><br>Regards,<br>Bharath<br><br><br> Mon, 12 Jan 2009 05:33:46 Z2009-01-12T05:33:46Zhttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/8db51500-9f37-434b-84b8-1c1ecd9fb738#25ea650f-6906-4fa9-bbc8-bb718a4c069dhttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/8db51500-9f37-434b-84b8-1c1ecd9fb738#25ea650f-6906-4fa9-bbc8-bb718a4c069dg_nicuhttp://social.msdn.microsoft.com/Profile/en-US/?user=g_nicuWPF Custom Control: Custom control is not visible in the designer + .Net 3.5 SP1 frameworkHi,<br/> <br/> have you solved this problem? I have it too.<br/> <br/> NicuThu, 25 Jun 2009 10:14:14 Z2009-06-25T10:14:14Zhttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/8db51500-9f37-434b-84b8-1c1ecd9fb738#7fb58f80-59d6-4377-8871-5affb6c649d9http://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/8db51500-9f37-434b-84b8-1c1ecd9fb738#7fb58f80-59d6-4377-8871-5affb6c649d9Mark Wilson-Thomashttp://social.msdn.microsoft.com/Profile/en-US/?user=Mark%20Wilson-ThomasWPF Custom Control: Custom control is not visible in the designer + .Net 3.5 SP1 framework<p>Hi BGan<br/><br/>The best way to debug in this situation is to attach a second instance of Visual Studio to the one in which you are attempting to run your Control on the designer. You will then be able to see whether any debug information is shown when you drag-drop your control.<br/><br/>The most common sources of issue here are that your control's constructor is failing to run; the method above will assist in identifying why. <br/><br/>Mark</p><hr class="sig">Mark Wilson-Thomas - Program Team - WPF &amp; SL Designer for Visual Studio - posts are provided 'as-is'Tue, 30 Jun 2009 00:55:30 Z2009-06-30T00:55:30Z