예제 #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);
 }