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