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

279 Views Asked by At

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.

Code-behind as well?

1

There are 1 best solutions below

4
Tigran On

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.

It's actually kind of triccky.

Hope this helps.

Regards.