Posts Tagged ‘ Runtime ’

Where is the DesignMode-Property in WPF?

If you want to implement a diffrent behaviour at design-time you can use the DesignMode Property in WinForms.
But in WPF does not exist this property.

So you have to use


public void DoSomethingOnlyAtRuntime()
{
  if(!System.ComponentModel.DesignerProperties.GetIsInDesignMode(this))
      DoSomething();
}