locked
every time that i am trying to use textbox (xaml) , designer stop working

    Question

  • every time that i am trying to use textbox (xaml) , designer stop working

    and it shows me the follow message :

    An Unhandled Exception has occurred

    Click here to reload the designer

    Details:

    System.Runtime.Remoting.RemotingException

    [3080] Designer process terminated unexpectedly!

    Can someone explain me the reason? and how can use textbox without stop working the designer? I try to debug the app after the break of designer and the app its working without errors! to be exact I use the textbox to show there a timer!

    Wednesday, January 30, 2013 2:21 PM

Answers

  • Hi MikeCycon,

    Some code might not work when loaded by the designer. You can use

    DesignerProperties.GetIsInDesignMode(new DependencyObject())

    to check whether it is in design mode and execute different code path in design mode to avoid crashing the designer.

    Best regards,


    Min Zhu
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Thursday, January 31, 2013 7:40 AM
    Moderator