示例#1
0
        public static ICommand GetCommand(Selector selector)
        {
            if (selector == null)
                throw new ArgumentNullException("selector");

            return selector.GetValue(CommandProperty) as ICommand;
        }
示例#2
0
        public static object GetCommandParameter(Selector selector)
        {
            if (selector == null)
                throw new ArgumentNullException("selector");

            return selector.GetValue(CommandParameterProperty);
        }
示例#3
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;
        }
示例#4
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;
        }
示例#5
0
 private static SelectedItemsSync GetSelectedItemsSync (Selector d)
 {
     return (SelectedItemsSync)d.GetValue(SelectedItemsSyncProperty);
 }
 static BindingBase GetSelectedValueBinding_RestoreAfterInitialization(Selector element)
 {
     return (BindingBase)element.GetValue(SelectedValueBinding_RestoreAfterInitializationProperty);
 }
示例#7
0
 public static ICommand GetCommand(Selector selector)
 {
     return (ICommand)selector.GetValue(CommandProperty);
 }
示例#8
0
 public static ISelectionMonitor GetSelectionMonitor(Selector element)
 {
     return (ISelectionMonitor)element.GetValue(SelectionMonitorProperty);
 }
示例#9
0
 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);
 }
示例#12
0
 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);
 }
示例#15
0
 public static bool GetIsEnabled(Selector target)
 {
     return (bool)target.GetValue(IsEnabledProperty);
 }
		public static CSharpFormattingOptionsContainer GetContainer(Selector element)
		{
			return (CSharpFormattingOptionsContainer) element.GetValue(ContainerProperty);
		}
示例#17
0
 public static int GetScrollingLines(Selector source)
 {
     return (int)source.GetValue(ScrollingLinesProperty);
 }
		public static FormattingOption GetFormattingOption(Selector element)
		{
			return (FormattingOption) element.GetValue(FormattingOptionProperty);
		}
示例#19
0
 /// <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);
 }
示例#21
0
		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);
 }
示例#24
0
 public static IList GetSelectedItems (Selector d)
 {
     return (IList)d.GetValue(SelectedItemsProperty);
 }