public ComboBoxDataItemAutomationPeer(object dataSource, SelectorAutomationPeer selectorAutomationPeer) : base(dataSource, selectorAutomationPeer) { if (selectorAutomationPeer == null) { throw new ArgumentNullException(nameof(selectorAutomationPeer)); } Text = dataSource?.ToString() ?? throw new ArgumentNullException(nameof(dataSource)); }
/// <summary> /// SplitListBoxItemAutomationPeer constructor. /// </summary> /// <param name="splitListBoxItem">The split list box item instance.</param> /// <param name="parent">The parent selector peer.</param> public SplitListBoxItemAutomationPeer(SplitListBoxItem splitListBoxItem, SelectorAutomationPeer parent) : base(splitListBoxItem, parent) { this.splitListBoxItem = splitListBoxItem; this.parent = parent; }
public ToggleableItemAutomationPeer(object item, SelectorAutomationPeer selectorAutomationPeer) : base(item, selectorAutomationPeer) { _owner = item as PackageItemListViewModel; _ownerParent = selectorAutomationPeer.Owner as InfiniteScrollListBox; }
public DataListBoxItemAutomationPeer(object owner, SelectorAutomationPeer selectorAutomationPeer) : base(owner, selectorAutomationPeer) { }
/// <summary> /// Creates an automation peer. /// </summary> /// <returns>The automation peer.</returns> protected override System.Windows.Automation.Peers.AutomationPeer OnCreateAutomationPeer() { #if SILVERLIGHT return(new SplitComboBoxItemAutomationPeer(this, this.ParentSplitComboBox != null ? SelectorAutomationPeer.FromElement(this.ParentSplitComboBox) as SelectorAutomationPeer : null)); #else return(new SplitComboBoxItemAutomationPeer(this)); #endif }
/// <summary> /// Initializes a new instance of the <see cref="RadComboBoxItemAutomationPeer"/> class. /// </summary> /// <param name="owner">The owner.</param> /// <param name="selectorAutomationPeer">The selector automation peer.</param> public RadComboBoxItemAutomationPeer(RadComboBoxItem owner, SelectorAutomationPeer selectorAutomationPeer) : base(owner, selectorAutomationPeer) { }
public ToggleableItemAutomationPeer(object item, SelectorAutomationPeer selectorAP) : base(item, selectorAP) { owner = item as Bird; }
public FXMonthViewItemAutomationPeer(object owner, SelectorAutomationPeer selectorAutomationPeer) : base(owner, selectorAutomationPeer) { }
/// <summary> /// Calls the internal method "RaiseSelectionEvents" on <paramref name="peer"/> and passes <paramref name="e"/> to it. /// </summary> public static void RaiseSelectionEvents(this SelectorAutomationPeer peer, SelectionChangedEventArgs e) { raiseSelectionEventsMethodInfo?.Invoke(peer, new object[] { e }); }
/// <inheritdoc cref="SelectorItemAutomationPeer" /> public GalleryItemAutomationPeer(object owner, SelectorAutomationPeer selectorAutomationPeer) : base(owner, selectorAutomationPeer) { }
public ToggleableItemAutomationPeer(object item, SelectorAutomationPeer selectorAutomationPeer) : base(item, selectorAutomationPeer) { _owner = item as ISelectableItem; _ownerParent = selectorAutomationPeer.Owner as ISelectableItemsControl; }
internal static void RaiseSelectionEvents(this SelectorAutomationPeer selectorAutomationPeer, SelectionChangedEventArgs e) { RaiseSelectionEventsMethodInfo?.Invoke(selectorAutomationPeer, new object[] { e }); }
public AutomatedListBoxItemAutomationPeer(object item, SelectorAutomationPeer owner) : base(item, owner) { }