Exemplo n.º 1
0
 public static XComponent AddBehaviour(this XComponent xscript, XBehaviour behaviuor, bool inject_bindings = true)
 {
     if (xscript.Behaviour == null)
     {
         if (inject_bindings)
         {
             XComponents.InjectBindings(xscript, behaviuor);
         }
         xscript.SetBehaviour(behaviuor);
     }
     return(xscript);
 }
 public bool TryGetBindingType(string Name, out object obj)
 {
     foreach (var item in TypeBindInfos)
     {
         if (item.Name == Name)
         {
             if (XComponents.TryGetValue(item, out obj))
             {
                 return(true);
             }
         }
     }
     obj = null;
     return(false);
 }