Cообщество разработчиков на платформе Microsoft > Форумы > Visual Studio WPF Designer > WPF Custom Control: Custom control is not visible in the designer + .Net 3.5 SP1 framework
Задайте вопросЗадайте вопрос
 

Общие обсужденияWPF Custom Control: Custom control is not visible in the designer + .Net 3.5 SP1 framework

  • 12 января 2009 г. 5:33BGan Медали пользователяМедали пользователяМедали пользователяМедали пользователяМедали пользователя
     
    Hi,

    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.

    Static  MyCustomControl (){
                 DefaultStyleKeyProperty.OverrideMetadata(typeof(MyCustomControl),  
                                      new FrameworkPropertyMetadata(typeof(MyCustomControl)));
    }

    When I drag and drop the control, It does not appear in the designer.
    Can any one tell me, What could be the reason for such behavior?


    Regards,
    Bharath


Все ответы