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 ICommand GetCommand(Controls.LoadingListBox ctrl) { return ctrl.GetValue(CommandProperty) as ICommand; }
public static object GetCommandParameter(Controls.LoadingListBox ctrl) { return ctrl.GetValue(CommandParameterProperty); }
private void GetDirectives(Controls.DotvvmBindableObject control) { var directives = (Dictionary<string, string>)control.GetValue(DotvvmView.DirectivesProperty); // get type directive string resourceTypeDirectiveValue; directives.TryGetValue(ParserConstants.ResourceTypeDirective, out resourceTypeDirectiveValue); ResourceTypeDirectiveValue = (resourceTypeDirectiveValue ?? "").Trim(); // get namespace directive string resourceNamespaceDirectiveValue; directives.TryGetValue(ParserConstants.ResourceNamespaceDirective, out resourceNamespaceDirectiveValue); ResourceNamespaceDirectiveValue = (resourceNamespaceDirectiveValue ?? "").Trim(); }