标签:style blog http color os ar for div sp
public static T GetParent<T>(DependencyObject child) where T : DependencyObject { DependencyObject dependencyObject = VisualTreeHelper.GetParent(child); if (dependencyObject != null) { T parent = dependencyObject as T; if (parent != null) { return parent; } else { return GetParent <T>(dependencyObject); } } else { return null; } }
标签:style blog http color os ar for div sp
原文地址:http://www.cnblogs.com/cg2019/p/3978470.html