public static void SetCommandParameter(Controls.LoadingListBox ctrl, object parameter) { ctrl.SetValue(CommandParameterProperty, parameter); }
private static NeedItemsCommandBehavior GetOrCreateBehavior(Controls.LoadingListBox ctrl) { NeedItemsCommandBehavior behavior = ctrl.GetValue(NeedItemsCommandBehaviorProperty) as NeedItemsCommandBehavior; if (behavior == null) { behavior = new NeedItemsCommandBehavior(ctrl); ctrl.SetValue(NeedItemsCommandBehaviorProperty, behavior); } return behavior; }
public static void SetCommand(Controls.LoadingListBox ctrl, ICommand command) { ctrl.SetValue(CommandProperty, command); }