private DependencyObject FindChildControl(DependencyObject control, string ctrlName) { int childNumber = VisualTreeHelper.GetChildrenCount(control); for (int i = 0; i < childNumber; i++) { DependencyObject child = VisualTreeHelper.GetChild(control, i); FrameworkElement fe = child as FrameworkElement; if (fe == null) return null; if (child is T && fe.Name == ctrlName) { return child; } else { DependencyObject nextLevel = FindChildControl (child, ctrlName); if (nextLevel != null) return nextLevel; } } return null; }
3 Temmuz 2013 Çarşamba
Windows store appslarda Kontrol Bulma
Windows store appslarda Kontrol Bulma
Kaydol:
Kayıtlar (Atom)