I have a TextBox control placed inside my window and I would like t开发者_如何转开发o change its Border. In order to do this, I have to somehow modify the existing Border set by the default control template.
Is there a way to modify only a part of a default control template (for a standard WPF control) by somehow overriding the existing objects?
http://msdn.microsoft.com/en-us/library/aa970773.aspx
There is no way to replace only part of the visual tree of a control; to change the visual tree of a control you must set the Template property of the control to its new and complete ControlTemplate.
加载中,请稍侯......
精彩评论