且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

WPF模板绑定

更新时间:2022-06-19 08:28:19

否,

问题尚不清楚:-D

您可以从样式内设置控件的属性.例如,对于textbox:

No,

The question isn''t clear :-D

You can set properties of controls from within the style. For example, for a textbox:

<Setter Property="Textbox.Text" Value="Tra la la"/>


需要将datacontext 向下传送到样式中的textbox es等.希望有帮助.
The datacontext needs to be carried down to the textboxes, etc. that are within the style. Hope that helps.