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