简体   繁体   English

在数据模板Silverlight 2.0中访问文本框的属性'MaxHeight'

[英]access textbox's property 'MaxHeight' within a datatemplate, silverlight 2.0

how do i access a textblock inside a data template which is embedded within a ListBox? 我如何访问嵌入在列表框内的数据模板内的文本块? I wish to assign a new value to the textblock's attribute such as MaxHeight. 我希望为文本块的属性(例如MaxHeight)分配一个新值。

Code-behind as well? 代码也一样吗?

I think I got time a go a similiar porblem to yours. 我想我有时间去找您一个类似的问题。 Check this Q&A with final mine resolution of my specific problem. 请与我的特定问题的最终防雷解决方案一起检查此问答。 Find an element in DataTemplate . 在DataTemplate中找到一个元素

It's actually kind of triccky. 这实际上有点棘手。

Hope this helps. 希望这可以帮助。

Regards. 问候。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM