|
protecting your custom control Thread Starter: itechie Started: 08 ... System.ComponentModel.DesignerProperties.GetIsInDesignMode(usercontrol) ...
|
|
bool foo = System.ComponentModel.DesignerProperties.GetIsInDesignMode(this); That boolean value would indicate whether or not you were in design mode.
|
|
bool foo = System.ComponentModel.DesignerProperties.GetIsInDesignMode(this); That boolean value would indicate whether or not you were in design mode.
|
|
... method Cygon mentions is here, save those who dont know from googling everywhere like I did :D. http://msdn2.microsoft.com/en-us/library/system.componentmodel.designerproperties ...
|
|
Button { public CustomButton() { if (System.ComponentModel.DesignerProperties .GetIsInDesignMode(this)) { Content = "In Design Mode"; } else ...
|
|
System.ComponentModel.DesignerProperties System.Deployment.Application System.Int32 System.IO.IsolatedStorage System.Reflection.Assembly.Load System.Windows.Controls
|
|
Blend and Cider team added a System.ComponentModel.DesignerProperties class to WPF so you can query if you are in 'design mode'.. You can call System.ComponentModel. ...
|
|
if (System.ComponentModel.DesignerProperties.GetIsInDesignMode(this)) { Content = "In Design Mode"; } else
|
|
Provides attached properties used to communicate with a designer. ... System.Object System.ComponentModel.DesignerProperties
|
|
The DesignerProperties class provides attached properties that can be ... System.ComponentModel . . :: . DesignerProperties ...
|