Example #1
0
 /// <summary> Adds behavior. </summary>
 public Component AddBehavior(IBehavior behavior)
 {
     if (Behaviors.All(b => b.Name != behavior.Name))
     {
         Behaviors.Add(behavior);
     }
     return(this);
 }