Determine if code is currently running in Blend

You can use IsInDesignTool to change behaviour of code if it is running in a designer (Blend), e.g.

 if (System.ComponentModel.DesignerProperties.IsInDesignTool)
    // code to run if in designer
    // code to run if not in designer i.e. running actual application


Comments (5) -

  • funny movies and games

    3/27/2010 12:30:07 AM | Reply

    It is a user-friendly solution which consists of different decoders for playing audio/video files of different formats. If you know which decoder is required for the selected file, please check the following links for downloading the corresponding decoder.

  • HDTV Ratings

    3/29/2010 10:12:39 AM | Reply

    God didn't have time to make a nobody, only a somebody.I believe that each of us has God-given talents within us waiting to be brought to fruition.
    Mary Kay Ash

Add comment