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