示例#1
0
 public static void SetCommandParameter(Controls.LoadingListBox ctrl, object parameter)
 {
     ctrl.SetValue(CommandParameterProperty, parameter);
 }
示例#2
0
        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;
        }
示例#3
0
 public static void SetCommand(Controls.LoadingListBox ctrl, ICommand command)
 {
     ctrl.SetValue(CommandProperty, command);
 }