title: How to set initial values for properties in Ext.Net
body: <p>How can I set the initial values for custom (or even non custom) controls properties in Ext.Net (an .net wrapper for extjs)?</p>
  
  <p>Currently I'm doing the following:</p>
  
  <pre><code>public class CpfField : Ext.Net.TextField {
  
      public CpfField() {
          this.SelectOnFocus = true;
          this.AllowBlank = false;
          this.MaxLength = 14;
          this.FieldLabel = "CPF";
          this.LabelAlign = Ext.Net.LabelAlign.Top;
          this.Plugins.Add(new CpfInputMask());
      }
  }
  </code></pre>
  
  <p>As you can see, I'm using the constructor just to set the default values, I'm not overriding any behavior of the control. So far, so good. It works as expected, but I have <code>this.LabelAlign = Ext.Net.LabelAlign.Top</code> set on each control I inherited.</p>
  
  <p>This smells like violating the <code>DRY</code> principle. Is there a way to set this (and other properties) in global scope?</p>