Thank you for your question.
It is possible to get a TextBlock
which is part of the LongListSelector
by using our ElementTreeHelper
. However, since the TextBlock
is part of the ItemTemplate
, you have one TextBlock
item. If I understand correctly, you want to use all TextBlock
-s which are inside the LongListSelector
for your tile which is not possible. If this is not the case and you want just one specific TextBlock
, here's how you can get it:
TextBlock t = ElementTreeHelper.FindVisualDescendant<TextBlock>(lstTask, (descendant) =>
This call gets the first TextBlock
doesn't start with "1" as an example. If you just need the first TextBlock
, you can skip the predicate and use the one parameter overload:
TextBlock t = ElementTreeHelper.FindVisualDescendant<TextBlock>(lstTask)
I hope this information helps.
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.