Override Silverlight Existing Control

I’m on my way to Override the Template of Existing Control.

Like i want to override the Validation Error ToolTip, validation Summary Header Structure.

Apparently is not as hard as we might think.

 

Put on your User Control Resource.

 

  • Change the Style Target Type to your Control With NameSpace or with out it.

ex: Textbox or MyInput.textbox.

 

  • Modified this Template ,and control template as your need

 

  • Set x:name on the Style.ex:MyNewStyleName
  • On your control set the Style={StaticResources MyNewStyleName}
Share this post: | | | |
Published Friday, April 30, 2010 11:48 AM by cipto

Comments

No Comments