Пример #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);
 }