for (int a = 0; a < VisualTreeHelper.GetChildrenCount(PARENTCONTROLNAME); a++) { lbl = VisualTreeHelper.GetChild(<pre lang="xml">PARENTCONTROLNAME, a) as Label; if (lbl != null) { if (lbl.Name.Equals(YOURSTRING) { // YOUR CODE TO BE PERFORMED } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)