Ejemplo n.º 1
0
        public static ICommand GetCommand(Selector selector)
        {
            if (selector == null)
                throw new ArgumentNullException("selector");

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

            return selector.GetValue(CommandParameterProperty);
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 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);
 }
Ejemplo n.º 7
0
 public static ICommand GetCommand(Selector selector)
 {
     return (ICommand)selector.GetValue(CommandProperty);
 }
Ejemplo n.º 8
0
 public static ISelectionMonitor GetSelectionMonitor(Selector element)
 {
     return (ISelectionMonitor)element.GetValue(SelectionMonitorProperty);
 }
Ejemplo n.º 9
0
 public static ListboxRowAnimationSetter GetRowAnimationSetter(Selector element)
 {
     return (ListboxRowAnimationSetter)element.GetValue(RowAnimationSetterProperty);
 }
 public static IList GetSelectedItemsBindable(Selector element)
 {
     return (IList)element.GetValue(SelectedItemsBindableProperty);
 }
Ejemplo n.º 11
0
 public static bool GetAutoAcrollIntoView(Selector selector)
 {
     return (bool)selector.GetValue(AutoScrollIntoViewProperty);
 }
Ejemplo n.º 12
0
 public static IList GetEnableIndexing(Selector selector)
 {
     return (IList)selector.GetValue(EnableIndexingProperty);
 }
 public static object GetCommandParameter(Selector selector)
 {
     return selector.GetValue(CommandParameterProperty);
 }
Ejemplo n.º 14
0
 public static IAttachedSelector GetBinding(Selector element)
 {
     return (IAttachedSelector)element.GetValue(BindingProperty);
 }
Ejemplo n.º 15
0
 public static bool GetIsEnabled(Selector target)
 {
     return (bool)target.GetValue(IsEnabledProperty);
 }
		public static CSharpFormattingOptionsContainer GetContainer(Selector element)
		{
			return (CSharpFormattingOptionsContainer) element.GetValue(ContainerProperty);
		}
Ejemplo n.º 17
0
 public static int GetScrollingLines(Selector source)
 {
     return (int)source.GetValue(ScrollingLinesProperty);
 }
		public static FormattingOption GetFormattingOption(Selector element)
		{
			return (FormattingOption) element.GetValue(FormattingOptionProperty);
		}
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 24
0
 public static IList GetSelectedItems (Selector d)
 {
     return (IList)d.GetValue(SelectedItemsProperty);
 }