Exemplo n.º 1
0
 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;
 }
Exemplo n.º 3
0
 public ToggleableItemAutomationPeer(object item, SelectorAutomationPeer selectorAutomationPeer)
     : base(item, selectorAutomationPeer)
 {
     _owner       = item as PackageItemListViewModel;
     _ownerParent = selectorAutomationPeer.Owner as InfiniteScrollListBox;
 }
Exemplo n.º 4
0
 public DataListBoxItemAutomationPeer(object owner, SelectorAutomationPeer selectorAutomationPeer) : base(owner, selectorAutomationPeer)
 {
 }
Exemplo n.º 5
0
        /// <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
        }
Exemplo n.º 6
0
 /// <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;
 }
Exemplo n.º 8
0
 public FXMonthViewItemAutomationPeer(object owner, SelectorAutomationPeer selectorAutomationPeer)
     : base(owner, selectorAutomationPeer)
 {
 }
Exemplo n.º 9
0
 /// <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 });
 }
Exemplo n.º 10
0
 /// <inheritdoc cref="SelectorItemAutomationPeer" />
 public GalleryItemAutomationPeer(object owner, SelectorAutomationPeer selectorAutomationPeer)
     : base(owner, selectorAutomationPeer)
 {
 }
Exemplo n.º 11
0
 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)
 {
 }