title: Override a property defined in base class
body: <p>I have case where the class hierarchy is something like this,</p>
  
  <pre><code>   +---------------+
     | UIElement     |
     |---------------|                            +----------------------+
     | ...           |                            | My Windows Application
     | SomePropert{} |                            |----------------------|
     |               |&lt;---+                       |+--------------------+|
     |               |    |                       ||MyUserControl       ||
     +---------------+    |                       ||--------------------||
           +--------------+-----+                 ||                    ||
           |FrameWorkElement    |                 |+--------------------+|
           |--------------------|                 |//Want to use         |
           |    ...             |&lt;-+              |// SomeProperty;      |
           +--------------------+  |              |                      |
                       +-----------+-+            |                      |
                       |Control      |            |                      |
                       |-------------|            +----------------------+
                       |  ...        |&lt;---+
                       +-------------+    |
                              +-----------+---+
                              | UserControl   |
                              |---------------|&lt;---+
                              |  ...          |    |
                              +---------------+    |
                                        +----------+-------+
                                        | MyUserControl    |
                                        |------------------|
                                        | SomeProperty{}   |
                                        | //Want to override
                                        |                  |
                                        +------------------+
  </code></pre>
  
  <p>Now in my app (and all other apps where I can export this MyUserControl) can I set the <code>SomeProperty</code> that is handled by the <code>MyUserControl</code> class rather than <code>UIElement</code>?</p>
  
  <p>I am right now doing this by creating an object to MyUserControl and assigning that to the control that I added in my xaml page.So right now looks like this,</p>
  
  <pre><code>MyUserControl newControl = new MyUserControl();
  web = windowsPhoneControl11;  //windowsPhoneControll1 is the 
                                //one that I added from toolbox.
                                // i.e., mycustomecontrol added from toolbox.
  </code></pre>
  
  <p>So now since I am using the 'new' it gets overriden. But when I export this control I can't expect the user to create a new object and assign it to the control that one is using in the xaml page. </p>
  
  <p>So is there any other way I could override this one property so that the assignment of that property is handled by MyUserControl class rather than the UIElement class? What I mean about MyUserControl having the control to set this property is that I need to check for some value before assigning it. If it is not atleast an expected value then I need to set it to a default value.</p>
  
  <p>Ps: I am sorry for such a long question but I couldn't express it more precise and I was not able to find anyother question related to this. And it is WindowsPhoneApp... Not the ordinary windowsapplication.</p>