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