public void AddBehaviors(Assembly assembly) { var behaviors = Behavior.LoadBehaviors(assembly); foreach (var behavior in behaviors) { AddToolButton(behavior); } }
private void AddBehaviors() { var behaviors = Behavior.LoadBehaviors(typeof(Dragger).Assembly); Behavior.Default = behaviors.First(b => b is Dragger); foreach (var behavior in behaviors) { DrawingHost.AddToolButton(behavior); } }