internal static void OnChildRemoved(IControlTemplated controlTemplated, Element removedChild) { if (removedChild == controlTemplated.TemplateRoot) { controlTemplated.TemplateRoot = null; } }
public static object GetTemplateChild(this IControlTemplated controlTemplated, string name) { return(controlTemplated.TemplateRoot?.FindByName(name)); }