In order to detect whether your application is executing as a result of being in a designer use the GetIsInDesignMode method of DesignerProperties as the following demonstrate.
bool designTime = System.ComponentModel.DesignerProperties.GetIsInDesignMode(
dim designTime as Boolean = DesignerProperties.GetIsInDesignMode(
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)
Dim IsInDesignMode As Boolean = System.ComponentModel.DesignerProperties.GetIsInDesignMode(Application.Current.MainWindow)
General News Suggestion Question Bug Answer Joke Rant Admin
Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.