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?
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?
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.