开发者

Partially change a WPF template for a standard control

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜