Пример #1
0
        public static void SetCommandParameter(Selector selector, object parameter)
        {
            if (selector == null)
                throw new ArgumentNullException("selector");

            selector.SetValue(CommandParameterProperty, parameter);
        }
Пример #2
0
        public static void SetCommand(Selector selector, ICommand command)
        {
            if (selector == null)
                throw new ArgumentNullException("selector");

            selector.SetValue(CommandProperty, command);
        }
Пример #3
0
        private static GenericSelectCommandBehavior GetOrCreateBehavior(Selector selector)
        {
            var behavior = selector.GetValue(SelectCommandBehaviorProperty) as GenericSelectCommandBehavior;
            if (behavior == null)
            {
                behavior = new GenericSelectCommandBehavior(selector);
                selector.SetValue(SelectCommandBehaviorProperty, behavior);
            }

            return behavior;
        }
Пример #4
0
        private static SelectorSelectionChangedCommandBehavior GetOrCreateBehavior(Selector selector)
        {
            var behavior = selector.GetValue(SelectionChangedCommandBehaviorProperty) as SelectorSelectionChangedCommandBehavior;
            if (behavior == null)
            {
                behavior = new SelectorSelectionChangedCommandBehavior(selector);
                selector.SetValue(SelectionChangedCommandBehaviorProperty, behavior);
            }

            return behavior;
        }
 public static void SetHighlightedItem(Selector element, object value)
 {
     element.SetValue(HighlightedItemProperty, value);
 }
Пример #6
0
 private static void SetSelectedItemsSync (Selector d, SelectedItemsSync value)
 {
     d.SetValue(SelectedItemsSyncProperty, value);
 }
 static void SetSelectedValueBinding_RestoreAfterInitialization(Selector element, BindingBase value)
 {
     element.SetValue(SelectedValueBinding_RestoreAfterInitializationProperty, value);
 }
Пример #8
0
 public static void SetCommand(Selector selector, ICommand value)
 {
     selector.SetValue(CommandProperty, value);
 }
Пример #9
0
 public static void SetIsEnabled(Selector target, bool value)
 {
     target.SetValue(IsEnabledProperty, value);
 }
Пример #10
0
 public static void SetAutoScrollIntoView(Selector selector, bool value)
 {
     selector.SetValue(AutoScrollIntoViewProperty, value);
 }
 public static void SetSelectedItemsBindable(Selector element, IList value)
 {
     element.SetValue(SelectedItemsBindableProperty, value);
 }
Пример #12
0
 public static void SetEnableIndexing(Selector selector, IList value)
 {
     selector.SetValue(EnableIndexingProperty, value);
 }
Пример #13
0
 public SelectorDefaultSelectedBeavaior(Selector selector, int value)
 {
     _selector = selector;
     defaultValue = value;
     _itemsSourceDescriptor = DependencyPropertyDescriptor.FromProperty(ItemsControl.ItemsSourceProperty, selector.GetType());
     RegisterEvent();
     _selector.SetValue(DefaultSelectedIndexProperty, value);
 }
 public static void SetCommandParameter(Selector selector, object parameter)
 {
     selector.SetValue(CommandParameterProperty, parameter);
 }
Пример #15
0
 public static void SetBinding(Selector element, IAttachedSelector value)
 {
     element.SetValue(BindingProperty, value);
 }
Пример #16
0
 public static void SetSelectionMonitor(Selector element, ISelectionMonitor value)
 {
     element.SetValue(SelectionMonitorProperty, value);
 }
Пример #17
0
 public static void SetRowAnimationSetter(Selector element, ListboxRowAnimationSetter value)
 {
     element.SetValue(RowAnimationSetterProperty, value);
 }
Пример #18
0
 public static void SetScrollingLines(Selector source, int value)
 {
     source.SetValue(ScrollingLinesProperty, value);
 }
		public static void SetContainer(Selector element, CSharpFormattingOptionsContainer container)
		{
			element.SetValue(ContainerProperty, container);
		}
Пример #20
0
 public static void SetCommand(Selector selector, ICommand command)
 {
     selector.SetValue(CommandProperty, command);
 }
		public static void SetFormattingOption(Selector element, FormattingOption container)
		{
			element.SetValue(FormattingOptionProperty, container);
		}
Пример #22
0
		public static void SetEnumType(Selector element, Type enumType)
		{
			element.SetValue(EnumTypeProperty, enumType);
		}
 public static void SetCommand(Selector element, ICommand value)
 {
     element.SetValue(CommandProperty, value);
 }
 public static void SetItemsSource(Selector element, IEnumerable value)
 {
     element.SetValue(ItemsSourceProperty, value);
 }
Пример #25
0
 public static void SetSelectedItems (Selector d, IList value)
 {
     d.SetValue(SelectedItemsProperty, value);
 }