public static void SetCommandParameter(Selector selector, object parameter) { if (selector == null) throw new ArgumentNullException("selector"); selector.SetValue(CommandParameterProperty, parameter); }
public static void SetCommand(Selector selector, ICommand command) { if (selector == null) throw new ArgumentNullException("selector"); selector.SetValue(CommandProperty, command); }
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; }
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); }
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); }
public static void SetCommand(Selector selector, ICommand value) { selector.SetValue(CommandProperty, value); }
public static void SetIsEnabled(Selector target, bool value) { target.SetValue(IsEnabledProperty, value); }
public static void SetAutoScrollIntoView(Selector selector, bool value) { selector.SetValue(AutoScrollIntoViewProperty, value); }
public static void SetSelectedItemsBindable(Selector element, IList value) { element.SetValue(SelectedItemsBindableProperty, value); }
public static void SetEnableIndexing(Selector selector, IList value) { selector.SetValue(EnableIndexingProperty, value); }
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); }
public static void SetBinding(Selector element, IAttachedSelector value) { element.SetValue(BindingProperty, value); }
public static void SetSelectionMonitor(Selector element, ISelectionMonitor value) { element.SetValue(SelectionMonitorProperty, value); }
public static void SetRowAnimationSetter(Selector element, ListboxRowAnimationSetter value) { element.SetValue(RowAnimationSetterProperty, value); }
public static void SetScrollingLines(Selector source, int value) { source.SetValue(ScrollingLinesProperty, value); }
public static void SetContainer(Selector element, CSharpFormattingOptionsContainer container) { element.SetValue(ContainerProperty, container); }
public static void SetCommand(Selector selector, ICommand command) { selector.SetValue(CommandProperty, command); }
public static void SetFormattingOption(Selector element, FormattingOption container) { element.SetValue(FormattingOptionProperty, container); }
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); }
public static void SetSelectedItems (Selector d, IList value) { d.SetValue(SelectedItemsProperty, value); }