title: Override Button's Height and Width Properties' TypeConverterAttribute in WPF
body: <p>I want to override default TypeConverterAttribute i.e. LengthConverter to my own created type converter class CustomLengthConverter in my WPF application.</p>
  
  <p>I am doing the following:</p>
  
  <pre><code>public class MyButton : Button
  {   
      [TypeConverterAttribute(typeof(CustomLengthConverter))]
      public new double Width
      {
          get
          {
              return base.Width;
          }
          set
          {
              base.Width = value;    
          }
      }
  }
  </code></pre>
  
  <p>But when assigned a value to Width propoerty my overriden "ConvertFrom" is not called. It seems it still uses the default LengthConverter class for performing type conversion.</p>
  
  <p>The purpose of doing it is that I want to add the support for additional measurement units in my application. Project demands that user can give a control's height and width in millimeters also which WPF does not support. So I need to use my convertor in case of the height and width are in millimeters.</p>