public static ICommand GetCommand(Selector selector) { if (selector == null) throw new ArgumentNullException("selector"); return selector.GetValue(CommandProperty) as ICommand; }
public static object GetCommandParameter(Selector selector) { if (selector == null) throw new ArgumentNullException("selector"); return selector.GetValue(CommandParameterProperty); }
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; }
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 SelectedItemsSync GetSelectedItemsSync (Selector d) { return (SelectedItemsSync)d.GetValue(SelectedItemsSyncProperty); }
static BindingBase GetSelectedValueBinding_RestoreAfterInitialization(Selector element) { return (BindingBase)element.GetValue(SelectedValueBinding_RestoreAfterInitializationProperty); }
public static ICommand GetCommand(Selector selector) { return (ICommand)selector.GetValue(CommandProperty); }
public static ISelectionMonitor GetSelectionMonitor(Selector element) { return (ISelectionMonitor)element.GetValue(SelectionMonitorProperty); }
public static ListboxRowAnimationSetter GetRowAnimationSetter(Selector element) { return (ListboxRowAnimationSetter)element.GetValue(RowAnimationSetterProperty); }
public static IList GetSelectedItemsBindable(Selector element) { return (IList)element.GetValue(SelectedItemsBindableProperty); }
public static bool GetAutoAcrollIntoView(Selector selector) { return (bool)selector.GetValue(AutoScrollIntoViewProperty); }
public static IList GetEnableIndexing(Selector selector) { return (IList)selector.GetValue(EnableIndexingProperty); }
public static object GetCommandParameter(Selector selector) { return selector.GetValue(CommandParameterProperty); }
public static IAttachedSelector GetBinding(Selector element) { return (IAttachedSelector)element.GetValue(BindingProperty); }
public static bool GetIsEnabled(Selector target) { return (bool)target.GetValue(IsEnabledProperty); }
public static CSharpFormattingOptionsContainer GetContainer(Selector element) { return (CSharpFormattingOptionsContainer) element.GetValue(ContainerProperty); }
public static int GetScrollingLines(Selector source) { return (int)source.GetValue(ScrollingLinesProperty); }
public static FormattingOption GetFormattingOption(Selector element) { return (FormattingOption) element.GetValue(FormattingOptionProperty); }
/// <summary> /// Retrieves the <see cref="ICommand"/> attached to the <see cref="TextBox"/>. /// </summary> /// <param name="selector">TextBox containing the Command dependency property</param> /// <returns>The value of the command attached</returns> public static ICommand GetCommand(Selector selector) { return selector.GetValue(CommandProperty) as ICommand; }
public static ICommand GetCommand(Selector element) { return (ICommand)element.GetValue(CommandProperty); }
public static Type GetEnumType(Selector element) { return (Type)element.GetValue(EnumTypeProperty); }
public static object GetHighlightedItem(Selector element) { return (object) element.GetValue(HighlightedItemProperty); }
public static IEnumerable GetItemsSource(Selector element) { return (IEnumerable)element.GetValue(ItemsSourceProperty); }
public static IList GetSelectedItems (Selector d) { return (IList)d.GetValue(SelectedItemsProperty); }