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 object GetCommandParameter(Controls.LoadingListBox ctrl) { return(ctrl.GetValue(CommandParameterProperty)); }
public static ICommand GetCommand(Controls.LoadingListBox ctrl) { return(ctrl.GetValue(CommandProperty) as ICommand); }