6 types derived from AutomationPeer
PresentationCore (3)
Core\CSharp\System\Windows\Automation\Peers\ContentElementAutomationPeer.cs (1)
21public class ContentElementAutomationPeer : AutomationPeer
Core\CSharp\System\Windows\Automation\Peers\UIElement3DAutomationPeer.cs (1)
19public class UIElement3DAutomationPeer: AutomationPeer
Core\CSharp\System\Windows\Automation\Peers\UIElementAutomationPeer.cs (1)
20public class UIElementAutomationPeer: AutomationPeer
PresentationFramework (3)
src\Framework\System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (1)
18public sealed class DataGridCellItemAutomationPeer : AutomationPeer,
src\Framework\System\Windows\Automation\Peers\DateTimeAutomationPeer.cs (1)
23public sealed class DateTimeAutomationPeer : AutomationPeer, IGridItemProvider, ISelectionItemProvider, ITableItemProvider, IInvokeProvider , IVirtualizedItemProvider
src\Framework\System\Windows\Automation\Peers\ItemAutomationPeer.cs (1)
27public abstract class ItemAutomationPeer : AutomationPeer, IVirtualizedItemProvider
827 references to AutomationPeer
PresentationCore (295)
Core\CSharp\MS\Internal\Automation\AutomationPatternInfo.cs (1)
25internal delegate object WrapObject( AutomationPeer peer, object iface, IntPtr hwnd );
Core\CSharp\MS\Internal\Automation\DockProviderWrapper.cs (3)
48private DockProviderWrapper( AutomationPeer peer, IDockProvider iface ) 89internal static object Wrap( AutomationPeer peer, object iface ) 126private AutomationPeer _peer;
Core\CSharp\MS\Internal\Automation\ElementProxy.cs (35)
59private ElementProxy(AutomationPeer peer) 97AutomationPeer peer = Peer; 107AutomationPeer peer = Peer; 119AutomationPeer peer = Peer; 134AutomationPeer peer = Peer; 165AutomationPeer peer = Peer; 175AutomationPeer peer = Peer; 187AutomationPeer peer = Peer; 203AutomationPeer peer = Peer; 215AutomationPeer peer = Peer; 227AutomationPeer peer = Peer; 237AutomationPeer peer = Peer; 271internal static ElementProxy StaticWrap(AutomationPeer peer, AutomationPeer referencePeer) 313internal AutomationPeer Peer 319AutomationPeer peer = (AutomationPeer)((WeakReference)_peer).Target; 324return (AutomationPeer)_peer; 346AutomationPeer peer = Peer; 351AutomationPeer peerFromPoint = peer.GetPeerFromPoint(point); 362AutomationPeer peer = Peer; 367AutomationPeer focusedPeer = AutomationPeer.AutomationPeerFromInputElement(Keyboard.FocusedElement); 374AutomationPeer peer = Peer; 386AutomationPeer dest; 387AutomationPeer peer = Peer; 442AutomationPeer peer = Peer; 456AutomationPeer peer = Peer; 467AutomationPeer peer = Peer; 478AutomationPeer peer = Peer; 489AutomationPeer peer = Peer; 500AutomationPeer peer = Peer; 512AutomationPeer peer = Peer; 513AutomationPeer root = peer; 520AutomationPeer parent = root.GetParent();
Core\CSharp\MS\Internal\Automation\ElementUtil.cs (1)
204internal static object Invoke(AutomationPeer peer, DispatcherOperationCallback work, object arg)
Core\CSharp\MS\Internal\Automation\ExpandCollapseProviderWrapper.cs (3)
48private ExpandCollapseProviderWrapper( AutomationPeer peer, IExpandCollapseProvider iface ) 94internal static object Wrap( AutomationPeer peer, object iface ) 137private AutomationPeer _peer;
Core\CSharp\MS\Internal\Automation\GridItemProviderWrapper.cs (3)
48private GridItemProviderWrapper( AutomationPeer peer, IGridItemProvider iface ) 116internal static object Wrap( AutomationPeer peer, object iface ) 167private AutomationPeer _peer;
Core\CSharp\MS\Internal\Automation\GridProviderWrapper.cs (3)
48private GridProviderWrapper( AutomationPeer peer, IGridProvider iface ) 97internal static object Wrap( AutomationPeer peer, object iface ) 139private AutomationPeer _peer;
Core\CSharp\MS\Internal\Automation\InteropAutomationProvider.cs (2)
18internal InteropAutomationProvider(HostedWindowWrapper wrapper, AutomationPeer parent) 154private AutomationPeer _parent;
Core\CSharp\MS\Internal\Automation\InvokeProviderWrapper.cs (3)
48private InvokeProviderWrapper( AutomationPeer peer, IInvokeProvider iface ) 81internal static object Wrap( AutomationPeer peer, object iface ) 113private AutomationPeer _peer;
Core\CSharp\MS\Internal\Automation\ItemContainerProviderWrapper.cs (3)
48private ItemContainerProviderWrapper(AutomationPeer peer, IItemContainerProvider iface) 82internal static object Wrap(AutomationPeer peer, object iface) 118private AutomationPeer _peer;
Core\CSharp\MS\Internal\Automation\MultipleViewProviderWrapper.cs (3)
48private MultipleViewProviderWrapper( AutomationPeer peer, IMultipleViewProvider iface ) 99internal static object Wrap( AutomationPeer peer, object iface ) 146private AutomationPeer _peer;
Core\CSharp\MS\Internal\Automation\RangeValueProviderWrapper.cs (3)
48private RangeValueProviderWrapper( AutomationPeer peer, IRangeValueProvider iface ) 129internal static object Wrap( AutomationPeer peer, object iface ) 191private AutomationPeer _peer;
Core\CSharp\MS\Internal\Automation\ScrollItemProviderWrapper.cs (3)
48private ScrollItemProviderWrapper(AutomationPeer peer, IScrollItemProvider iface) 81internal static object Wrap( AutomationPeer peer, object iface ) 113private AutomationPeer _peer;
Core\CSharp\MS\Internal\Automation\ScrollProviderWrapper.cs (3)
51private ScrollProviderWrapper( AutomationPeer peer, IScrollProvider iface ) 137internal static object Wrap( AutomationPeer peer, object iface ) 207private AutomationPeer _peer;
Core\CSharp\MS\Internal\Automation\SelectionItemProviderWrapper.cs (3)
50private SelectionItemProviderWrapper( AutomationPeer peer, ISelectionItemProvider iface ) 109internal static object Wrap( AutomationPeer peer, object iface ) 163private AutomationPeer _peer;
Core\CSharp\MS\Internal\Automation\SelectionProviderWrapper.cs (3)
50private SelectionProviderWrapper( AutomationPeer peer, ISelectionProvider iface ) 99internal static object Wrap( AutomationPeer peer, object iface ) 140private AutomationPeer _peer;
Core\CSharp\MS\Internal\Automation\SynchronizedInputProviderWrapper.cs (3)
48private SynchronizedInputProviderWrapper( AutomationPeer peer, ISynchronizedInputProvider iface ) 87internal static object Wrap( AutomationPeer peer, object iface ) 125private AutomationPeer _peer;
Core\CSharp\MS\Internal\Automation\TableItemProviderWrapper.cs (3)
48private TableItemProviderWrapper( AutomationPeer peer, ITableItemProvider iface ) 126internal static object Wrap( AutomationPeer peer, object iface ) 187private AutomationPeer _peer;
Core\CSharp\MS\Internal\Automation\TableProviderWrapper.cs (3)
48private TableProviderWrapper( AutomationPeer peer, ITableProvider iface ) 115internal static object Wrap( AutomationPeer peer, object iface ) 172private AutomationPeer _peer;
Core\CSharp\MS\Internal\Automation\TextProviderWrapper.cs (3)
39private TextProviderWrapper( AutomationPeer peer, ITextProvider iface ) 108internal static object Wrap( AutomationPeer peer, object iface ) 165private AutomationPeer _peer;
Core\CSharp\MS\Internal\Automation\TextRangeProviderWrapper.cs (4)
40internal TextRangeProviderWrapper( AutomationPeer peer, ITextRangeProvider iface ) 184static internal ITextRangeProvider WrapArgument(ITextRangeProvider argument, AutomationPeer peer) 195static internal ITextRangeProvider [] WrapArgument(ITextRangeProvider [] argument, AutomationPeer peer) 371private AutomationPeer _peer;
Core\CSharp\MS\Internal\Automation\ToggleProviderWrapper.cs (3)
47private ToggleProviderWrapper( AutomationPeer peer, IToggleProvider iface ) 88internal static object Wrap( AutomationPeer peer, object iface ) 125private AutomationPeer _peer;
Core\CSharp\MS\Internal\Automation\TransformProviderWrapper.cs (3)
47private TransformProviderWrapper( AutomationPeer peer, ITransformProvider iface ) 115internal static object Wrap( AutomationPeer peer, object iface ) 176private AutomationPeer _peer;
Core\CSharp\MS\Internal\Automation\ValueProviderWrapper.cs (3)
48private ValueProviderWrapper( AutomationPeer peer, IValueProvider iface ) 97internal static object Wrap( AutomationPeer peer, object iface ) 139private AutomationPeer _peer;
Core\CSharp\MS\Internal\Automation\VirtualizedItemProviderWrapper.cs (3)
48private VirtualizedItemProviderWrapper(AutomationPeer peer, IVirtualizedItemProvider iface) 81internal static object Wrap(AutomationPeer peer, object iface) 114private AutomationPeer _peer;
Core\CSharp\MS\Internal\Automation\WindowProviderWrapper.cs (3)
48private WindowProviderWrapper( AutomationPeer peer, IWindowProvider iface) 139internal static object Wrap( AutomationPeer peer, object iface) 212private AutomationPeer _peer;
Core\CSharp\MS\Internal\SynchronizedInputHelper.cs (1)
318internal static void RaiseAutomationEvent(AutomationPeer peer)
Core\CSharp\MS\Internal\UIElementHelper.cs (1)
195AutomationPeer ap = null;
Core\CSharp\System\Windows\Automation\Peers\AutomationPeer.cs (97)
300abstract protected List<AutomationPeer> GetChildrenCore(); 402AutomationPeer peer = AutomationPeerFromInputElement(newFocus); 416internal static AutomationPeer AutomationPeerFromInputElement(IInputElement focusedElement) 418AutomationPeer peer = null; 474internal AutomationPeer ValidateConnected(AutomationPeer connectedPeer) 496AutomationPeer[] roots = lm.GetAutomationRoots(); 499AutomationPeer root = roots[i]; 526internal bool TrySetParentInfo(AutomationPeer peer) 564private bool isDescendantOf(AutomationPeer parent) 569List<AutomationPeer> children = parent.GetChildren(); 577AutomationPeer child = children[i]; 694abstract protected AutomationPeer GetLabeledByCore(); 723virtual protected List<AutomationPeer> GetControlledPeersCore() 1093public AutomationPeer GetLabeledBy() 1095AutomationPeer result; 1234public List<AutomationPeer> GetControlledPeers() 1236List<AutomationPeer> result = null; 1261List<AutomationPeer> controlledPeers = GetControlledPeers(); 1333public AutomationPeer GetParent() 1339public List<AutomationPeer> GetChildren() 1374internal AutomationPeer GetFirstChild() 1376AutomationPeer peer = null; 1425internal AutomationPeer GetLastChild() 1427AutomationPeer peer = null; 1448internal AutomationPeer GetNextSibling() 1450AutomationPeer sibling = null; 1451AutomationPeer parent = IterationParent; 1471internal AutomationPeer GetPreviousSibling() 1473AutomationPeer sibling = null; 1474AutomationPeer parent = IterationParent; 1544private void ChooseIterationParent(AutomationPeer caller) 1547AutomationPeer iterationParent; 1574private AutomationPeer IterationParent 1667public AutomationPeer GetPeerFromPoint(Point point) 1672protected virtual AutomationPeer GetPeerFromPointCore(Point point) 1674AutomationPeer found = null; 1678List<AutomationPeer> children = GetChildren(); 1713protected internal IRawElementProviderSimple ProviderFromPeer(AutomationPeer peer) 1715AutomationPeer referencePeer = this; 1718AutomationPeer eventsSource; 1727private IRawElementProviderSimple ProviderFromPeerNoDelegation(AutomationPeer peer) 1729AutomationPeer referencePeer = this; 1742public AutomationPeer EventsSource 1747? (AutomationPeer)_eventsSourceOrPeerRecord 1767protected AutomationPeer PeerFromProvider(IRawElementProviderSimple provider) 1807List<AutomationPeer> oldChildren = _children; 1808List<AutomationPeer> addedChildren = null; 1837AutomationPeer child = _children[i]; 1844if(addedChildren == null) addedChildren = new List<AutomationPeer>(); 1893AutomationPeer removedChild = (AutomationPeer)key; 1906foreach (AutomationPeer addedChild in addedChildren) 2021for(AutomationPeer peer = GetFirstChild(); peer != null; peer = peer.GetNextSibling()) 2058AutomationPeer peer = (AutomationPeer)arg; 2150internal List<AutomationPeer> Children 2370private delegate object WrapObject(AutomationPeer peer, object iface); 2386private delegate object GetProperty(AutomationPeer peer); 2388private static object IsControlElement(AutomationPeer peer) { return peer.IsControlElement(); } 2389private static object GetControlType(AutomationPeer peer) { ControlType controlType = peer.GetControlType(); return controlType.Id; } 2390private static object IsContentElement(AutomationPeer peer) { return peer.IsContentElement(); } 2391private static object GetLabeledBy(AutomationPeer peer) { AutomationPeer byPeer = peer.GetLabeledBy(); return ElementProxy.StaticWrap(byPeer, peer); } 2392private static object GetNativeWindowHandle(AutomationPeer peer) { return null /* not used? */; } 2393private static object GetAutomationId(AutomationPeer peer) { return peer.GetAutomationId(); } 2394private static object GetItemType(AutomationPeer peer) { return peer.GetItemType(); } 2395private static object IsPassword(AutomationPeer peer) { return peer.IsPassword(); } 2396private static object GetLocalizedControlType(AutomationPeer peer) { return peer.GetLocalizedControlType(); } 2397private static object GetName(AutomationPeer peer) { return peer.GetName(); } 2398private static object GetAcceleratorKey(AutomationPeer peer) { return peer.GetAcceleratorKey(); } 2399private static object GetAccessKey(AutomationPeer peer) { return peer.GetAccessKey(); } 2400private static object HasKeyboardFocus(AutomationPeer peer) { return peer.HasKeyboardFocus(); } 2401private static object IsKeyboardFocusable(AutomationPeer peer) { return peer.IsKeyboardFocusable(); } 2402private static object IsEnabled(AutomationPeer peer) { return peer.IsEnabled(); } 2403private static object GetBoundingRectangle(AutomationPeer peer) { return peer.GetBoundingRectangle(); } 2404private static object GetCurrentProcessId(AutomationPeer peer) { return SafeNativeMethods.GetCurrentProcessId(); } 2405private static object GetRuntimeId(AutomationPeer peer) { return peer.GetRuntimeId(); } 2406private static object GetClassName(AutomationPeer peer) { return peer.GetClassName(); } 2407private static object GetHelpText(AutomationPeer peer) { return peer.GetHelpText(); } 2408private static object GetClickablePoint(AutomationPeer peer) { Point pt = peer.GetClickablePoint(); return new double[] {pt.X, pt.Y}; } 2409private static object GetCultureInfo(AutomationPeer peer) { return null; } 2410private static object IsOffscreen(AutomationPeer peer) { return peer.IsOffscreen(); } 2411private static object GetOrientation(AutomationPeer peer) { return peer.GetOrientation(); } 2412private static object GetFrameworkId(AutomationPeer peer) { return peer.GetFrameworkId(); } 2413private static object IsRequiredForForm(AutomationPeer peer) { return peer.IsRequiredForForm(); } 2414private static object GetItemStatus(AutomationPeer peer) { return peer.GetItemStatus(); } 2415private static object GetLiveSetting(AutomationPeer peer) { return peer.GetLiveSetting(); } 2416private static object GetControllerFor(AutomationPeer peer) { return peer.GetControllerForProviderArray(); } 2417private static object GetSizeOfSet(AutomationPeer peer) { return peer.GetSizeOfSet(); } 2418private static object GetPositionInSet(AutomationPeer peer) { return peer.GetPositionInSet(); } 2429private List<AutomationPeer> _children; 2430private AutomationPeer _parent; 2453private AutomationPeer _eventsSource; 2454public AutomationPeer EventsSource 2460private AutomationPeer _iterationParent; 2461public AutomationPeer IterationParent
Core\CSharp\System\Windows\Automation\Peers\ContentElementAutomationPeer.cs (28)
53public static AutomationPeer CreatePeerForElement(ContentElement element) 63public static AutomationPeer FromElement(ContentElement element) 73/// <see cref="AutomationPeer.GetChildrenCore"/> 75override protected List<AutomationPeer> GetChildrenCore() 95/// <see cref="AutomationPeer.GetAutomationControlTypeCore"/> 103/// <see cref="AutomationPeer.GetAutomationIdCore"/> 111/// <see cref="AutomationPeer.GetNameCore"/> 119/// <see cref="AutomationPeer.GetHelpTextCore"/> 127/// <see cref="AutomationPeer.GetBoundingRectangleCore"/> 135/// <see cref="AutomationPeer.IsOffscreenCore"/> 152/// <see cref="AutomationPeer.GetOrientationCore"/> 160/// <see cref="AutomationPeer.GetItemTypeCore"/> 168/// <see cref="AutomationPeer.GetClassNameCore"/> 176/// <see cref="AutomationPeer.GetItemStatusCore"/> 184/// <see cref="AutomationPeer.IsRequiredForFormCore"/> 192/// <see cref="AutomationPeer.IsKeyboardFocusableCore"/> 200/// <see cref="AutomationPeer.HasKeyboardFocusCore"/> 208/// <see cref="AutomationPeer.IsEnabledCore"/> 216/// <see cref="AutomationPeer.IsPasswordCore"/> 224/// <see cref="AutomationPeer.IsContentElementCore"/> 232/// <see cref="AutomationPeer.IsControlElementCore"/> 240/// <see cref="AutomationPeer.GetLabeledByCore"/> 242override protected AutomationPeer GetLabeledByCore() 248/// <see cref="AutomationPeer.GetAcceleratorKeyCore"/> 256/// <see cref="AutomationPeer.GetAccessKeyCore"/> 264/// <see cref="AutomationPeer.GetLiveSettingCore"/> 290/// <see cref="AutomationPeer.GetClickablePointCore"/> 298/// <see cref="AutomationPeer.SetFocusCore"/>
Core\CSharp\System\Windows\Automation\Peers\UIElement3DAutomationPeer.cs (11)
52public static AutomationPeer CreatePeerForElement(UIElement3D element) 63public static AutomationPeer FromElement(UIElement3D element) 74override protected List<AutomationPeer> GetChildrenCore() 76List<AutomationPeer> children = null; 79(IteratorCallback)delegate(AutomationPeer peer) 82children = new List<AutomationPeer>(); 91private delegate bool IteratorCallback(AutomationPeer peer); 100AutomationPeer peer = null; 171/// <see cref="AutomationPeer.GetBoundingRectangleCore"/> 344override protected AutomationPeer GetLabeledByCore() 396/// <see cref="AutomationPeer.GetClickablePointCore"/>
Core\CSharp\System\Windows\Automation\Peers\UIElementAutomationPeer.cs (14)
52public static AutomationPeer CreatePeerForElement(UIElement element) 63public static AutomationPeer FromElement(UIElement element) 74override protected List<AutomationPeer> GetChildrenCore() 76List<AutomationPeer> children = null; 79(IteratorCallback)delegate(AutomationPeer peer) 82children = new List<AutomationPeer>(); 96internal static AutomationPeer GetRootAutomationPeer(Visual rootVisual, IntPtr hwnd) 98AutomationPeer root = null; 101(IteratorCallback)delegate(AutomationPeer peer) 115private delegate bool IteratorCallback(AutomationPeer peer); 124AutomationPeer peer = null; 403override protected AutomationPeer GetLabeledByCore() 449AutomationPeer peer = UIElementAutomationPeer.FromElement(element); 484AutomationPeer peer = UIElementAutomationPeer.FromElement(element);
Core\CSharp\System\Windows\ContentElement.cs (6)
128protected virtual AutomationPeer OnCreateAutomationPeer() { return null; } 135internal AutomationPeer CreateAutomationPeer() 139AutomationPeer ap = null; 163internal AutomationPeer GetAutomationPeer() 973private static readonly UncommonField<AutomationPeer> AutomationPeerField = new UncommonField<AutomationPeer>();
Core\CSharp\System\Windows\Input\KeyboardDevice.cs (1)
565AutomationPeer.RaiseFocusChangedEventHelper((IInputElement)_focus);
Core\CSharp\System\Windows\Interop\HwndTarget.cs (4)
1521internal AutomationPeer EnsureAutomationPeer(Visual root) 1531internal static AutomationPeer EnsureAutomationPeer(Visual root, IntPtr handle) 1533AutomationPeer peer = null; 1581AutomationPeer peer = EnsureAutomationPeer(root, handle);
Core\CSharp\System\Windows\LayoutManager.cs (7)
713AutomationPeer peer = null; 717peer = (AutomationPeer)(item.Target); 755internal AutomationPeer[] GetAutomationRoots() 759AutomationPeer[] peers = new AutomationPeer[copy.Length]; 767AutomationPeer peer = null; 771peer = (AutomationPeer)(item.Target);
Core\CSharp\System\Windows\Media3D\ContainerUIElement3D.cs (1)
102protected override AutomationPeer OnCreateAutomationPeer()
Core\CSharp\System\Windows\Media3D\ModelUIElement3D.cs (1)
96protected override AutomationPeer OnCreateAutomationPeer()
Core\CSharp\System\Windows\UIElement.cs (10)
3722AutomationPeer peer = uie.GetAutomationPeer(); 4019protected virtual AutomationPeer OnCreateAutomationPeer() 4029internal virtual AutomationPeer OnCreateAutomationPeerInternal() { return null; } 4036internal AutomationPeer CreateAutomationPeer() 4040AutomationPeer ap = null; 4084internal AutomationPeer GetAutomationPeer() 4100internal AutomationPeer CreateGenericRootAutomationPeer() 4104AutomationPeer ap = null; 4735private static readonly UncommonField<AutomationPeer> AutomationPeerField = new UncommonField<AutomationPeer>();
Core\CSharp\System\Windows\UIElement3D.cs (7)
927AutomationPeer peer = uie.GetAutomationPeer(); 1211protected virtual AutomationPeer OnCreateAutomationPeer() { return null; } 1218internal AutomationPeer CreateAutomationPeer() 1222AutomationPeer ap = null; 1246internal AutomationPeer GetAutomationPeer() 1593private static readonly UncommonField<AutomationPeer> AutomationPeerField = new UncommonField<AutomationPeer>();
PresentationFramework (477)
src\Framework\MS\Internal\AppModel\RootBrowserWindow.cs (1)
99protected override AutomationPeer OnCreateAutomationPeer()
src\Framework\MS\Internal\Documents\TextContainerHelper.cs (9)
316internal static List<AutomationPeer> GetAutomationPeersFromRange(ITextPointer start, ITextPointer end, ITextPointer ownerContentStart) 319AutomationPeer peer = null; 321List<AutomationPeer> peers = new List<AutomationPeer>(); 413AutomationPeer peer = null; 436internal static AutomationPeer GetEnclosingAutomationPeer(ITextPointer start, ITextPointer end, out ITextPointer elementStart, out ITextPointer elementEnd) 439AutomationPeer peer; 739private static void iterate(Visual parent, List<AutomationPeer> peers) 741AutomationPeer peer = null;
src\Framework\System\Windows\Automation\Peers\CalendarAutomationPeer.cs (13)
110protected override List<AutomationPeer> GetChildrenCore() 117List<AutomationPeer> peers = new List<AutomationPeer>(); 121AutomationPeer buttonPeer; 147AutomationPeer dayTitlePeer = UIElementAutomationPeer.CreatePeerForElement(child); 260AutomationPeer wrapperPeer = peer.WrapperPeer; 308if (AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementSelected) && numSelected == 1 && numAdded == 1) 318if (AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementAddedToSelection)) 331if (AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection)) 402AutomationPeer peer = GetOrCreateDateTimeAutomationPeer(date, OwningCalendar.DisplayMode); 491AutomationPeer peer = GetOrCreateDateTimeAutomationPeer(date, CalendarMode.Month); 564AutomationPeer nextPeer = GetOrCreateDateTimeAutomationPeer(nextDate.Value, currentMode); 642AutomationPeer peer = CreatePeerForElement(child);
src\Framework\System\Windows\Automation\Peers\ComboBoxAutomationPeer.cs (4)
70protected override List<AutomationPeer> GetChildrenCore() 72List<AutomationPeer> children = base.GetChildrenCore(); 79AutomationPeer peer = UIElementAutomationPeer.CreatePeerForElement(textBox); 83children = new List<AutomationPeer>();
src\Framework\System\Windows\Automation\Peers\ContentTextAutomationPeer.cs (3)
32internal new IRawElementProviderSimple ProviderFromPeer(AutomationPeer peer) 43AutomationPeer peer = PeerFromProvider(provider); 58internal abstract List<AutomationPeer> GetAutomationPeersFromRange(ITextPointer start, ITextPointer end);
src\Framework\System\Windows\Automation\Peers\DataGridAutomationPeer.cs (13)
47protected override List<AutomationPeer> GetChildrenCore() 49List<AutomationPeer> children = base.GetChildrenCore(); 55AutomationPeer columnsHeaderPresenterPeer = FrameworkElementAutomationPeer.CreatePeerForElement(columnsHeaderPresenter); 60children = new List<AutomationPeer>(1); 97AutomationPeer scrollPeer = UIElementAutomationPeer.CreatePeerForElement(scrollViewer); 252AutomationPeer peer = dataGridColumnHeadersPresenterPeer.FindOrCreateItemAutomationPeer(this.OwningDataGrid.Columns[i]); 282AutomationPeer rowHeaderAutomationPeer = dataGridItemAutomationPeer.RowHeaderAutomationPeer; 332if (AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementSelected) && 344if (AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementAddedToSelection)) 356if (AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection)) 405if (AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementSelected) && 417if (AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementAddedToSelection)) 429if (AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection))
src\Framework\System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (34)
49AutomationPeer wrapperPeer = OwningCellPeer; 61AutomationPeer wrapperPeer = OwningCellPeer; 79AutomationPeer wrapperPeer = OwningCellPeer; 91AutomationPeer wrapperPeer = OwningCellPeer; 103protected override List<AutomationPeer> GetChildrenCore() 105AutomationPeer wrapperPeer = OwningCellPeer; 113List<AutomationPeer> children = wrapperPeer.GetChildren(); 123AutomationPeer wrapperPeer = OwningCellPeer; 138AutomationPeer wrapperPeer = OwningCellPeer; 150AutomationPeer wrapperPeer = OwningCellPeer; 162AutomationPeer wrapperPeer = OwningCellPeer; 174AutomationPeer wrapperPeer = OwningCellPeer; 184protected override AutomationPeer GetLabeledByCore() 186AutomationPeer wrapperPeer = OwningCellPeer; 210AutomationPeer wrapperPeer = OwningCellPeer; 228AutomationPeer wrapperPeer = OwningCellPeer; 245AutomationPeer wrapperPeer = OwningCellPeer; 322AutomationPeer wrapperPeer = OwningCellPeer; 348AutomationPeer wrapperPeer = OwningCellPeer; 365AutomationPeer wrapperPeer = OwningCellPeer; 376AutomationPeer wrapperPeer = OwningCellPeer; 388AutomationPeer wrapperPeer = OwningCellPeer; 398AutomationPeer wrapperPeer = OwningCellPeer; 408AutomationPeer wrapperPeer = OwningCellPeer; 420AutomationPeer wrapperPeer = OwningCellPeer; 432AutomationPeer wrapperPeer = OwningCellPeer; 445AutomationPeer wrapperPeer = OwningCellPeer; 457AutomationPeer wrapperPeer = OwningCellPeer; 469AutomationPeer wrapperPeer = OwningCellPeer; 548AutomationPeer dataGridColumnHeaderPeer = columnHeadersPresenterPeer.FindOrCreateItemAutomationPeer(_column); 570AutomationPeer rowHeaderAutomationPeer = dataGridItemAutomationPeer.RowHeaderAutomationPeer; 791AutomationPeer parent = this.GetParent(); 857AutomationPeer peer = UIElementAutomationPeer.CreatePeerForElement(OwningDataGrid); 907AutomationPeer wrapperPeer = OwningCellPeer;
src\Framework\System\Windows\Automation\Peers\DataGridColumnHeaderItemAutomationPeer.cs (2)
43AutomationPeer wrapperPeer = GetWrapperPeer(); 210AutomationPeer wrapperPeer = OwningColumnHeaderPeer;
src\Framework\System\Windows\Automation\Peers\DataGridColumnHeadersPresenterAutomationPeer.cs (4)
57protected override List<AutomationPeer> GetChildrenCore() 59List<AutomationPeer> children = null; 82children = new List<AutomationPeer>(childItems.Count); 121AutomationPeer wrapperPeer = peer.GetWrapperPeer();
src\Framework\System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (14)
53protected override List<AutomationPeer> GetChildrenCore() 55AutomationPeer wrapperPeer = GetWrapperPeer(); 63List<AutomationPeer> children = wrapperPeer.GetChildren(); 73AutomationPeer wrapperPeer = GetWrapperPeer(); 114protected override AutomationPeer GetPeerFromPointCore(Point point) 118AutomationPeer rowHeaderAutomationPeer = RowHeaderAutomationPeer; 122AutomationPeer found = rowHeaderAutomationPeer.GetPeerFromPoint(point); 226AutomationPeer wrapperPeer = GetWrapperPeer(); 415internal List<AutomationPeer> GetCellItemPeers() 417List<AutomationPeer> children = null; 443children = new List<AutomationPeer>(childItems.Count); 513AutomationPeer wrapperPeer = peer.OwningCellPeer; 586internal AutomationPeer RowHeaderAutomationPeer 623private AutomationPeer _dataGridAutomationPeer;
src\Framework\System\Windows\Automation\Peers\DataGridRowAutomationPeer.cs (7)
54protected override List<AutomationPeer> GetChildrenCore() 61List<AutomationPeer> children = new List<AutomationPeer>(3); 64AutomationPeer dataGridRowHeaderAutomationPeer = RowHeaderAutomationPeer; 78AutomationPeer dataGridDetailsPresenterAutomationPeer = DetailsPresenterAutomationPeer; 97internal AutomationPeer RowHeaderAutomationPeer 111private AutomationPeer DetailsPresenterAutomationPeer
src\Framework\System\Windows\Automation\Peers\DatePickerAutomationPeer.cs (2)
92protected override List<AutomationPeer> GetChildrenCore() 94List<AutomationPeer> children = base.GetChildrenCore();
src\Framework\System\Windows\Automation\Peers\DateTimeAutomationPeer.cs (28)
57AutomationPeer wrapperPeer = WrapperPeer; 99AutomationPeer peer = FrameworkElementAutomationPeer.CreatePeerForElement(this.OwningCalendar); 150AutomationPeer wrapperPeer = WrapperPeer; 165AutomationPeer wrapperPeer = WrapperPeer; 185AutomationPeer wrapperPeer = WrapperPeer; 200AutomationPeer wrapperPeer = WrapperPeer; 213protected override List<AutomationPeer> GetChildrenCore() 215AutomationPeer wrapperPeer = WrapperPeer; 230AutomationPeer wrapperPeer = WrapperPeer; 236AutomationPeer wrapperPeer = WrapperPeer; 262AutomationPeer wrapperPeer = WrapperPeer; 277AutomationPeer wrapperPeer = WrapperPeer; 290protected override AutomationPeer GetLabeledByCore() 292AutomationPeer wrapperPeer = WrapperPeer; 307AutomationPeer wrapperPeer = WrapperPeer; 348AutomationPeer wrapperPeer = WrapperPeer; 431AutomationPeer wrapperPeer = WrapperPeer; 455AutomationPeer wrapperPeer = WrapperPeer; 470AutomationPeer wrapperPeer = WrapperPeer; 476AutomationPeer wrapperPeer = WrapperPeer; 491AutomationPeer wrapperPeer = WrapperPeer; 506AutomationPeer wrapperPeer = WrapperPeer; 521AutomationPeer wrapperPeer = WrapperPeer; 536AutomationPeer wrapperPeer = WrapperPeer; 551AutomationPeer wrapperPeer = WrapperPeer; 566AutomationPeer wrapperPeer = WrapperPeer; 581AutomationPeer wrapperPeer = WrapperPeer; 913AutomationPeer parent = this.GetParent();
src\Framework\System\Windows\Automation\Peers\DocumentAutomationPeer.cs (10)
57/// <see cref="AutomationPeer.GetChildrenCore"/> 63protected override List<AutomationPeer> GetChildrenCore() 74/// <see cref="AutomationPeer.GetAutomationControlTypeCore"/> 103/// <see cref="AutomationPeer.GetAutomationControlTypeCore"/> 111/// <see cref="AutomationPeer.GetClassNameCore"/> 120/// <see cref="AutomationPeer.IsControlElementCore"/> 138/// <see cref="AutomationPeer.GetBoundingRectangleCore"/> 164/// <see cref="AutomationPeer.GetClickablePointCore"/> 192/// <see cref="AutomationPeer.IsOffscreenCore"/> 218internal override List<AutomationPeer> GetAutomationPeersFromRange(ITextPointer start, ITextPointer end)
src\Framework\System\Windows\Automation\Peers\DocumentPageViewAutomationPeer.cs (3)
32/// <see cref="AutomationPeer.GetChildrenCore"/> 38protected override List<AutomationPeer> GetChildrenCore() 44/// <see cref="AutomationPeer.GetAutomationIdCore()"/>
src\Framework\System\Windows\Automation\Peers\DocumentViewerAutomationPeer.cs (3)
33/// <see cref="AutomationPeer.GetClassNameCore"/> 41/// <see cref="AutomationPeer.GetPattern"/> 56AutomationPeer scrollPeer = UIElementAutomationPeer.CreatePeerForElement(owner.ScrollViewer);
src\Framework\System\Windows\Automation\Peers\DocumentViewerBaseAutomationPeer.cs (10)
31/// <see cref="AutomationPeer.GetPattern"/> 58/// <see cref="AutomationPeer.GetChildrenCore"/> 64protected override List<AutomationPeer> GetChildrenCore() 67List<AutomationPeer> children = base.GetChildrenCore(); 71AutomationPeer documentPeer = GetDocumentAutomationPeer(); 84children = new List<AutomationPeer>(); 93/// <see cref="AutomationPeer.GetAutomationControlTypeCore"/> 101/// <see cref="AutomationPeer.GetClassNameCore"/> 112private AutomationPeer GetDocumentAutomationPeer() 114AutomationPeer documentPeer = null;
src\Framework\System\Windows\Automation\Peers\ExpanderAutomationPeer.cs (2)
39protected override List<AutomationPeer> GetChildrenCore() 41List<AutomationPeer> children = base.GetChildrenCore();
src\Framework\System\Windows\Automation\Peers\FlowDocumentPageViewerAutomationPeer.cs (4)
31/// <see cref="AutomationPeer.GetChildrenCore"/> 37protected override List<AutomationPeer> GetChildrenCore() 40List<AutomationPeer> children = base.GetChildrenCore(); 61/// <see cref="AutomationPeer.GetClassNameCore"/>
src\Framework\System\Windows\Automation\Peers\FlowDocumentReaderAutomationPeer.cs (7)
33/// <see cref="AutomationPeer.GetPattern"/> 50/// <see cref="AutomationPeer.GetChildrenCore"/> 56protected override List<AutomationPeer> GetChildrenCore() 59List<AutomationPeer> children = base.GetChildrenCore(); 66AutomationPeer documentPeer = ContentElementAutomationPeer.CreatePeerForElement(document); 79children = new List<AutomationPeer>(); 89/// <see cref="AutomationPeer.GetClassNameCore"/>
src\Framework\System\Windows\Automation\Peers\FlowDocumentScrollViewerAutomationPeer.cs (9)
34/// <see cref="AutomationPeer.GetPattern"/> 45AutomationPeer scrollPeer = UIElementAutomationPeer.CreatePeerForElement(owner.ScrollViewer); 74/// <see cref="AutomationPeer.GetChildrenCore"/> 80protected override List<AutomationPeer> GetChildrenCore() 83List<AutomationPeer> children = base.GetChildrenCore(); 95AutomationPeer documentPeer = ContentElementAutomationPeer.CreatePeerForElement(document); 108children = new List<AutomationPeer>(); 119/// <see cref="AutomationPeer.GetAutomationControlTypeCore"/> 127/// <see cref="AutomationPeer.GetClassNameCore"/>
src\Framework\System\Windows\Automation\Peers\FrameworkContentElementAutomationPeer.cs (3)
30/// <see cref="AutomationPeer.GetAutomationIdCore"/> 75override protected AutomationPeer GetLabeledByCore() 77AutomationPeer labelPeer = base.GetLabeledByCore();
src\Framework\System\Windows\Automation\Peers\FrameworkElementAutomationPeer.cs (1)
53AutomationPeer labelAutomationPeer = GetLabeledByCore();
src\Framework\System\Windows\Automation\Peers\GridViewAutomationPeer.cs (12)
73List<AutomationPeer> IViewAutomationPeer.GetChildren(List<AutomationPeer> children) 78AutomationPeer peer = UIElementAutomationPeer.CreatePeerForElement(_owner.HeaderRowPresenter); 84children = new List<AutomationPeer>(); 148AutomationPeer peer = UIElementAutomationPeer.CreatePeerForElement(e); 239AutomationPeer lvpeer = UIElementAutomationPeer.FromElement(_listview); 242AutomationPeer peer = UIElementAutomationPeer.FromElement(lvi); 246AutomationPeer eventSource = peer.EventsSource; 252List<AutomationPeer> columns = peer.GetChildren(); 282AutomationPeer lvPeer = UIElementAutomationPeer.FromElement(_listview); 285List<AutomationPeer> list = lvPeer.GetChildren(); 288foreach (AutomationPeer peer in list)
src\Framework\System\Windows\Automation\Peers\GridViewCellAutomationPeer.cs (8)
83List<AutomationPeer> children = GetChildrenAutomationPeer(Owner, includeInvisibleItems); 117AutomationPeer peer = UIElementAutomationPeer.FromElement(header); 145private List<AutomationPeer> GetChildrenAutomationPeer(Visual parent, bool includeInvisibleItems) 149List<AutomationPeer> children = null; 152(IteratorCallback)delegate(AutomationPeer peer) 155children = new List<AutomationPeer>(); 164private delegate bool IteratorCallback(AutomationPeer peer); 171AutomationPeer peer = null;
src\Framework\System\Windows\Automation\Peers\GridViewHeaderRowPresenterAutomationPeer.cs (5)
49protected override List<AutomationPeer> GetChildrenCore() 51List<AutomationPeer> list = base.GetChildrenCore(); 52List<AutomationPeer> newList = null; 55newList = new List<AutomationPeer>(list.Count); 58foreach (AutomationPeer peer in list)
src\Framework\System\Windows\Automation\Peers\GridViewItemAutomationPeer.cs (3)
45protected override List<AutomationPeer> GetChildrenCore() 60List<AutomationPeer> list = new List<AutomationPeer>();
src\Framework\System\Windows\Automation\Peers\GroupItemAutomationPeer.cs (6)
107AutomationPeer expanderPeer = UIElementAutomationPeer.CreatePeerForElement(groupItem.Expander); 120protected override List<AutomationPeer> GetChildrenCore() 135List<AutomationPeer> children = new List<AutomationPeer>(childItems.Count); 243AutomationPeer wrapperPeer = peer.GetWrapperPeer(); 347private AutomationPeer _expanderPeer = null;
src\Framework\System\Windows\Automation\Peers\HyperlinkAutomationPeer.cs (1)
75/// <see cref="AutomationPeer.IsControlElementCore"/>
src\Framework\System\Windows\Automation\Peers\ItemAutomationPeer.cs (31)
45AutomationPeer wrapperPeer = GetWrapperPeer(); 111virtual internal AutomationPeer GetWrapperPeer() 113AutomationPeer wrapperPeer = null; 141AutomationPeer parent = this.GetParent(); 165AutomationPeer wrapperPeer = GetWrapperPeer(); 180protected override List<AutomationPeer> GetChildrenCore() 182AutomationPeer wrapperPeer = GetWrapperPeer(); 187List<AutomationPeer> children = wrapperPeer.GetChildren(); 197AutomationPeer wrapperPeer = GetWrapperPeer(); 211AutomationPeer wrapperPeer = GetWrapperPeer(); 223AutomationPeer wrapperPeer = GetWrapperPeer(); 245AutomationPeer wrapperPeer = GetWrapperPeer(); 279AutomationPeer wrapperPeer = GetWrapperPeer(); 378AutomationPeer wrapperPeer = GetWrapperPeer(); 391AutomationPeer wrapperPeer = GetWrapperPeer(); 403AutomationPeer wrapperPeer = GetWrapperPeer(); 415AutomationPeer wrapperPeer = GetWrapperPeer(); 427AutomationPeer wrapperPeer = GetWrapperPeer(); 439AutomationPeer wrapperPeer = GetWrapperPeer(); 451AutomationPeer wrapperPeer = GetWrapperPeer(); 473AutomationPeer wrapperPeer = GetWrapperPeer(); 506AutomationPeer wrapperPeer = GetWrapperPeer(); 516AutomationPeer wrapperPeer = GetWrapperPeer(); 524protected override AutomationPeer GetLabeledByCore() 526AutomationPeer wrapperPeer = GetWrapperPeer(); 538AutomationPeer wrapperPeer = GetWrapperPeer(); 550AutomationPeer wrapperPeer = GetWrapperPeer(); 562AutomationPeer wrapperPeer = GetWrapperPeer(); 574AutomationPeer wrapperPeer = GetWrapperPeer(); 586AutomationPeer wrapperPeer = GetWrapperPeer(); 598AutomationPeer wrapperPeer = GetWrapperPeer();
src\Framework\System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (11)
40AutomationPeer scrollPeer = UIElementAutomationPeer.CreatePeerForElement(owner.ScrollHost); 64protected override List<AutomationPeer> GetChildrenCore() 66List<AutomationPeer> children = null; 86children = new List<AutomationPeer>(childItems.Count); 153children = new List<AutomationPeer>(childItems.Count); 190AutomationPeer wrapperPeer = peer.GetWrapperPeer(); 371internal static object GetSupportedPropertyValueInternal(AutomationPeer itemPeer, int propertyId) 407AutomationPeer wrapperPeer = peer.GetWrapperPeer(); 476internal AutomationPeer GetExistingPeerByItem(object item, bool checkInWeakRefStorage) 478AutomationPeer returnPeer = null; 799public AutomationPeer Peer
src\Framework\System\Windows\Automation\Peers\IViewAutomationPeer.cs (2)
39List<AutomationPeer> GetChildren(List<AutomationPeer> children);
src\Framework\System\Windows\Automation\Peers\ListViewAutomationPeer.cs (2)
66protected override List<AutomationPeer> GetChildrenCore() 74List<AutomationPeer> ret = base.GetChildrenCore();
src\Framework\System\Windows\Automation\Peers\MenuItemAutomationPeer.cs (4)
149protected override List<AutomationPeer> GetChildrenCore() 151List<AutomationPeer> children = base.GetChildrenCore(); 160children = new List<AutomationPeer>(items.Count); 166AutomationPeer peer = UIElementAutomationPeer.FromElement(uiElement);
src\Framework\System\Windows\Automation\Peers\NavigationWindowAutomationPeer.cs (1)
26internal static void RaiseAsyncContentLoadedEvent(AutomationPeer peer, long bytesRead, long maxBytes)
src\Framework\System\Windows\Automation\Peers\PasswordBoxAutomationPeer.cs (3)
87((AutomationPeer)returnValue).EventsSource = this; 169internal override List<AutomationPeer> GetAutomationPeersFromRange(ITextPointer start, ITextPointer end) 171return new List<AutomationPeer>();
src\Framework\System\Windows\Automation\Peers\RichTextBoxAutomationPeer.cs (4)
62((AutomationPeer)returnValue).EventsSource = this; 76/// <see cref="AutomationPeer.GetChildrenCore"/> 78protected override List<AutomationPeer> GetChildrenCore() 87internal override List<AutomationPeer> GetAutomationPeersFromRange(ITextPointer start, ITextPointer end)
src\Framework\System\Windows\Automation\Peers\SelectorAutomationPeer.cs (1)
71internal static new object GetSupportedPropertyValueInternal(AutomationPeer itemPeer, int propertyId)
src\Framework\System\Windows\Automation\Peers\StatusBarAutomationPeer.cs (11)
40protected override List<AutomationPeer> GetChildrenCore() 42List<AutomationPeer> list = new List<AutomationPeer>(); 69List<AutomationPeer> childList = GetChildrenAutomationPeer(item); 72foreach (AutomationPeer ap in childList) 90private List<AutomationPeer> GetChildrenAutomationPeer(Visual parent) 94List<AutomationPeer> children = null; 97(IteratorCallback)delegate(AutomationPeer peer) 100children = new List<AutomationPeer>(); 109private delegate bool IteratorCallback(AutomationPeer peer); 116AutomationPeer peer = null;
src\Framework\System\Windows\Automation\Peers\TabItemAutomationPeer.cs (4)
58protected override List<AutomationPeer> GetChildrenCore() 61List<AutomationPeer> headerChildren = base.GetChildrenCore(); 73AutomationPeer contentHostPeer = new FrameworkElementAutomationPeer(contentHost); 74List<AutomationPeer> contentChildren = contentHostPeer.GetChildren();
src\Framework\System\Windows\Automation\Peers\TableAutomationPeer.cs (4)
31/// <see cref="AutomationPeer.GetPattern"/> 46/// <see cref="AutomationPeer.GetAutomationControlTypeCore"/> 54/// <see cref="AutomationPeer.GetClassNameCore"/> 62/// <see cref="AutomationPeer.IsControlElementCore"/>
src\Framework\System\Windows\Automation\Peers\TableCellAutomationPeer.cs (5)
28/// <see cref="AutomationPeer.GetPattern"/> 43/// <see cref="AutomationPeer.GetAutomationControlTypeCore"/> 51/// <see cref="AutomationPeer.GetLocalizedControlTypeCore"/> 59/// <see cref="AutomationPeer.GetClassNameCore"/> 67/// <see cref="AutomationPeer.IsControlElementCore"/>
src\Framework\System\Windows\Automation\Peers\TextAutomationPeer.cs (4)
45AutomationPeer labelAutomationPeer = GetLabeledByCore(); 58internal new IRawElementProviderSimple ProviderFromPeer(AutomationPeer peer) 69AutomationPeer peer = PeerFromProvider(provider); 84internal abstract List<AutomationPeer> GetAutomationPeersFromRange(ITextPointer start, ITextPointer end);
src\Framework\System\Windows\Automation\Peers\TextBlockAutomationPeer.cs (6)
32/// <see cref="AutomationPeer.GetChildrenCore"/> 34protected override List<AutomationPeer> GetChildrenCore() 36List<AutomationPeer> peers = null; 47/// <see cref="AutomationPeer.GetAutomationControlTypeCore"/> 55/// <see cref="AutomationPeer.GetClassNameCore"/> 64/// <see cref="AutomationPeer.IsControlElementCore"/>
src\Framework\System\Windows\Automation\Peers\TextBoxAutomationPeer.cs (3)
63((AutomationPeer)returnValue).EventsSource = this; 134internal override List<AutomationPeer> GetAutomationPeersFromRange(ITextPointer start, ITextPointer end) 136return new List<AutomationPeer>();
src\Framework\System\Windows\Automation\Peers\TextElementAutomationPeer.cs (6)
37/// <see cref="AutomationPeer.GetChildrenCore"/> 43protected override List<AutomationPeer> GetChildrenCore() 50/// <see cref="AutomationPeer.GetBoundingRectangleCore"/> 101/// <see cref="AutomationPeer.GetClickablePointCore"/> 150/// <see cref="AutomationPeer.IsOffscreenCore"/> 223internal override List<AutomationPeer> GetAutomationPeersFromRange(ITextPointer start, ITextPointer end)
src\Framework\System\Windows\Automation\Peers\TreeViewAutomationPeer.cs (6)
51AutomationPeer scrollPeer = UIElementAutomationPeer.CreatePeerForElement(owner.ScrollHost); 64protected override List<AutomationPeer> GetChildrenCore() 74List<AutomationPeer> children = null; 80children = new List<AutomationPeer>(items.Count); 93AutomationPeer wrapperPeer = peer.GetWrapperPeer(); 168AutomationPeer peer = UIElementAutomationPeer.FromElement(selectedContainer);
src\Framework\System\Windows\Automation\Peers\TreeViewDataItemAutomationPeer.cs (2)
81override internal AutomationPeer GetWrapperPeer() 83AutomationPeer wrapperPeer = base.GetWrapperPeer();
src\Framework\System\Windows\Automation\Peers\TreeViewItemAutomationPeer.cs (10)
59protected override List<AutomationPeer> GetChildrenCore() 61List<AutomationPeer> children = null; 69(IteratorCallback)delegate(AutomationPeer peer) 72children = new List<AutomationPeer>(); 81private delegate bool IteratorCallback(AutomationPeer peer); 90AutomationPeer peer = null; 123AutomationPeer wrapperPeer = (peer as ItemAutomationPeer).GetWrapperPeer(); 172AutomationPeer parentPeer = this; 193AutomationPeer wrapperPeer = (peer as ItemAutomationPeer).GetWrapperPeer(); 387AutomationPeer peer = UIElementAutomationPeer.FromElement(parent);
src\Framework\System\Windows\Controls\Button.cs (3)
246protected override System.Windows.Automation.Peers.AutomationPeer OnCreateAutomationPeer() 256if (AutomationPeer.ListenerExists(AutomationEvents.InvokePatternOnInvoked)) 258AutomationPeer peer = UIElementAutomationPeer.CreatePeerForElement(this);
src\Framework\System\Windows\Controls\Calendar.cs (4)
828protected override AutomationPeer OnCreateAutomationPeer() 1052if (AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementSelected) || 1053AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementAddedToSelection) || 1054AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection))
src\Framework\System\Windows\Controls\CheckBox.cs (1)
66protected override System.Windows.Automation.Peers.AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Controls\ComboBox.cs (5)
580if ( AutomationPeer.ListenerExists(AutomationEvents.SelectionPatternOnInvalidated) 581|| AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementSelected) 582|| AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementAddedToSelection) 583|| AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection) ) 1906protected override AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Controls\ContextMenu.cs (1)
391protected override System.Windows.Automation.Peers.AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Controls\DataGrid.cs (11)
2457if (AutomationPeer.ListenerExists(AutomationEvents.InvokePatternOnInvoked)) 2484if (AutomationPeer.ListenerExists(AutomationEvents.InvokePatternOnInvoked)) 3129if (AutomationPeer.ListenerExists(AutomationEvents.InvokePatternOnInvoked)) 4314if (AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementSelected) || 4315AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementAddedToSelection) || 4316AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection)) 4567if (AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementSelected) || 4568AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementAddedToSelection) || 4569AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection)) 6743protected override System.Windows.Automation.Peers.AutomationPeer OnCreateAutomationPeer() 6888if (AutomationPeer.ListenerExists(AutomationEvents.PropertyChanged))
src\Framework\System\Windows\Controls\DataGridCell.cs (1)
63protected override System.Windows.Automation.Peers.AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Controls\DataGridRow.cs (1)
1238protected override System.Windows.Automation.Peers.AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Controls\DatePicker.cs (1)
767protected override AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Controls\DocumentViewer.cs (1)
882protected override AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Controls\Expander.cs (1)
298protected override AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Controls\FlowDocumentReader.cs (1)
772protected override AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
759protected override AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Controls\Frame.cs (1)
563protected override AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Controls\GridSplitter.cs (1)
301protected override AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Controls\GridViewColumnHeader.cs (3)
534protected override AutomationPeer OnCreateAutomationPeer() 846if (AutomationPeer.ListenerExists(AutomationEvents.InvokePatternOnInvoked)) 848AutomationPeer peer = UIElementAutomationPeer.CreatePeerForElement(this);
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
791protected override AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Controls\GroupBox.cs (1)
41protected override System.Windows.Automation.Peers.AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Controls\GroupItem.cs (1)
46protected override System.Windows.Automation.Peers.AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Controls\Image.cs (1)
193protected override System.Windows.Automation.Peers.AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Controls\InkCanvas.cs (1)
403protected override AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Controls\InkPresenter.cs (1)
332protected override AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Controls\ItemsControl.cs (1)
3951internal override AutomationPeer OnCreateAutomationPeerInternal()
src\Framework\System\Windows\Controls\Label.cs (1)
175protected override System.Windows.Automation.Peers.AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Controls\ListBox.cs (5)
223protected override System.Windows.Automation.Peers.AutomationPeer OnCreateAutomationPeer() 296if ( AutomationPeer.ListenerExists(AutomationEvents.SelectionPatternOnInvalidated) 297|| AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementSelected) 298|| AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementAddedToSelection) 299|| AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection) )
src\Framework\System\Windows\Controls\ListBoxItem.cs (1)
242protected override AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Controls\ListView.cs (1)
225protected override AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Controls\MediaElement.cs (1)
703protected override AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Controls\Menu.cs (1)
130protected override System.Windows.Automation.Peers.AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Controls\MenuItem.cs (3)
1278protected override System.Windows.Automation.Peers.AutomationPeer OnCreateAutomationPeer() 1396if (AutomationPeer.ListenerExists(AutomationEvents.InvokePatternOnInvoked)) 1398AutomationPeer peer = UIElementAutomationPeer.CreatePeerForElement(this);
src\Framework\System\Windows\Controls\PasswordBox.cs (1)
465protected override AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Controls\Primitives\CalendarButton.cs (1)
154protected override AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Controls\Primitives\CalendarDayButton.cs (1)
182protected override AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Controls\Primitives\DataGridColumnHeader.cs (3)
764if (AutomationPeer.ListenerExists(AutomationEvents.InvokePatternOnInvoked)) 766AutomationPeer peer = UIElementAutomationPeer.CreatePeerForElement(this); 851protected override System.Windows.Automation.Peers.AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (1)
97protected override System.Windows.Automation.Peers.AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Controls\Primitives\DataGridDetailsPresenter.cs (1)
38protected override System.Windows.Automation.Peers.AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Controls\Primitives\DataGridRowHeader.cs (1)
139protected override System.Windows.Automation.Peers.AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Controls\Primitives\DocumentPageView.cs (1)
551protected override AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
393protected override AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Controls\Primitives\MenuBase.cs (2)
312if (AutomationPeer.ListenerExists(automationEvent)) 314AutomationPeer peer = UIElementAutomationPeer.CreatePeerForElement(this);
src\Framework\System\Windows\Controls\Primitives\PopupRoot.cs (1)
87protected override System.Windows.Automation.Peers.AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Controls\Primitives\RepeatButton.cs (3)
197protected override AutomationPeer OnCreateAutomationPeer() 208if (AutomationPeer.ListenerExists(AutomationEvents.InvokePatternOnInvoked)) 210AutomationPeer peer = UIElementAutomationPeer.CreatePeerForElement(this);
src\Framework\System\Windows\Controls\Primitives\ScrollBar.cs (1)
143protected override AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Controls\Primitives\StatusBar.cs (1)
177protected override AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Controls\Primitives\StatusBarItem.cs (1)
39protected override AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Controls\Primitives\Thumb.cs (1)
217protected override AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Controls\Primitives\ToggleButton.cs (1)
255protected override AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Controls\ProgressBar.cs (1)
297protected override AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Controls\RadioButton.cs (1)
230protected override System.Windows.Automation.Peers.AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Controls\RichTextBox.cs (1)
299protected override AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Controls\ScrollViewer.cs (1)
2489protected override AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Controls\Separator.cs (1)
43protected override AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Controls\SinglePageViewer.cs (1)
371protected override AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Controls\Slider.cs (1)
1225protected override AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Controls\TabControl.cs (5)
316protected override AutomationPeer OnCreateAutomationPeer() 381if ( AutomationPeer.ListenerExists(AutomationEvents.SelectionPatternOnInvalidated) 382|| AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementSelected) 383|| AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementAddedToSelection) 384|| AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection) )
src\Framework\System\Windows\Controls\TabItem.cs (1)
266protected override AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Controls\TextAdaptor.cs (2)
53internal TextAdaptor(AutomationPeer textPeer, ITextContainer textContainer) 451private AutomationPeer _textPeer;
src\Framework\System\Windows\Controls\TextBlock.cs (1)
1987protected override AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Controls\TextBox.cs (1)
1001protected override AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Controls\TextRangeAdaptor.cs (12)
467internal TextRangeAdaptor(TextAdaptor textAdaptor, ITextPointer start, ITextPointer end, AutomationPeer textPeer) 1388private AutomationPeer GetEnclosingAutomationPeer(ITextPointer start, ITextPointer end) 1392AutomationPeer peer = TextContainerHelper.GetEnclosingAutomationPeer(start, end, out elementStart, out elementEnd); 1404AutomationPeer peerParent = GetEnclosingAutomationPeer(elementStart, elementEnd); 1413private IRawElementProviderSimple ProviderFromPeer(AutomationPeer peer) 1430private List<AutomationPeer> GetAutomationPeersFromRange(AutomationPeer peer, ITextPointer start, ITextPointer end) 1432List<AutomationPeer> peers; 1538private AutomationPeer _textPeer; 1862AutomationPeer peer = GetEnclosingAutomationPeer(_start, _end); 2116AutomationPeer peer = GetEnclosingAutomationPeer(_start, _end); 2118List<AutomationPeer> peers = GetAutomationPeersFromRange(peer, _start, _end);
src\Framework\System\Windows\Controls\ToolBar.cs (1)
468protected override AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Controls\ToolTip.cs (5)
190if (AutomationPeer.ListenerExists(AutomationEvents.ToolTipClosed)) 192AutomationPeer peer = UIElementAutomationPeer.CreatePeerForElement(t); 447protected override AutomationPeer OnCreateAutomationPeer() 549if (AutomationPeer.ListenerExists(AutomationEvents.ToolTipOpened)) 551AutomationPeer peer = UIElementAutomationPeer.CreatePeerForElement(this);
src\Framework\System\Windows\Controls\TreeView.cs (3)
253&& AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementSelected) ) 261&& AutomationPeer.ListenerExists(AutomationEvents.SelectionItemPatternOnElementRemovedFromSelection) ) 849protected override AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Controls\TreeViewItem.cs (1)
1071protected override AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Controls\UserControl.cs (1)
55protected override AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Controls\ViewPort3D.cs (1)
161protected override AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Documents\DocumentSequence.cs (1)
577protected override AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Documents\FixedDocument.cs (1)
641protected override AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Documents\FixedPage.cs (1)
94protected override System.Windows.Automation.Peers.AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Documents\FlowDocument.cs (1)
827protected override AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Documents\Hyperlink.cs (3)
720if (AutomationPeer.ListenerExists(AutomationEvents.InvokePatternOnInvoked)) 722AutomationPeer peer = ContentElementAutomationPeer.CreatePeerForElement(this); 768protected override System.Windows.Automation.Peers.AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Documents\Table.cs (1)
194protected override AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Documents\TableCell.cs (1)
176protected override AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Interop\HwndHost.cs (2)
763protected override AutomationPeer OnCreateAutomationPeer() 776AutomationPeer containerPeer = UIElementAutomationPeer.CreatePeerForElement(this);
src\Framework\System\Windows\Navigation\NavigationService.cs (2)
2558AutomationPeer peer = UIElementAutomationPeer.FromElement(navigatorHost) as AutomationPeer;
src\Framework\System\Windows\Navigation\NavigationWindow.cs (1)
875protected override AutomationPeer OnCreateAutomationPeer()
src\Framework\System\Windows\Window.cs (2)
1807protected override AutomationPeer OnCreateAutomationPeer() 5007AutomationPeer peer = UIElementAutomationPeer.FromElement(this);
System.Activities.Core.Presentation (5)
System\Activities\Core\Presentation\FlowchartExpressionAutomationPeer.cs (2)
15AutomationPeer wrappedAutomationPeer; 17public FlowchartExpressionAutomationPeer(FrameworkElement owner, AutomationPeer wrappedAutomationPeer)
System\Activities\Core\Presentation\FlowDecisionDesigner.xaml.cs (1)
135protected override AutomationPeer OnCreateAutomationPeer()
System\Activities\Core\Presentation\FlowSwitchDesigner.xaml.cs (1)
146protected override AutomationPeer OnCreateAutomationPeer()
System\Activities\Core\Presentation\TryCatchDesigner.xaml.cs (1)
634protected override AutomationPeer OnCreateAutomationPeer()
System.Activities.Presentation (50)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Automation\AutomatedChoiceEditor.cs (1)
42protected override AutomationPeer OnCreateAutomationPeer()
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Automation\AutomatedComboBox.cs (1)
20protected override AutomationPeer OnCreateAutomationPeer()
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Automation\AutomatedListBox.cs (1)
20protected override AutomationPeer OnCreateAutomationPeer()
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Automation\CategoryContainerAutomationPeer.cs (16)
42private AutomationPeer _itemAutomationPeer; 45private CategoryContainerAutomationPeer(CiderCategoryContainer container, AutomationPeer itemPeer) 99private List<AutomationPeer> GetChildrenCore() 101List<AutomationPeer> children = new List<AutomationPeer>(); 125private static void AddCategoryEditors(List<AutomationPeer> peers, ItemsControl editors, string containerDisplayName) 137private static void AddCategoryProperties(List<AutomationPeer> peers, ItemsControl properties) 329private List<AutomationPeer> _children; 347protected override List<AutomationPeer> GetChildrenCore() 379foreach (AutomationPeer peer in _children) 472private List<AutomationPeer> _children; 496protected override List<AutomationPeer> GetChildrenCore() 498_children = new List<AutomationPeer>(); 505foreach (AutomationPeer peer in _children) 599foreach (AutomationPeer peer in _children) 627protected override List<AutomationPeer> GetChildrenCore()
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Automation\CategoryListAutomationPeer.cs (3)
34private List<AutomationPeer> _children; 49_children = new List<AutomationPeer>(); 108foreach (AutomationPeer peer in _children)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Automation\PropertyInspectorAutomationPeer.cs (5)
25private List<AutomationPeer> _children; 45protected override List<AutomationPeer> GetChildrenCore() 52foreach (AutomationPeer peer in _children) 64_children = new List<AutomationPeer>(); 131protected override AutomationPeer GetLabeledByCore()
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Automation\SubPropertyEditorAutomationPeer.cs (4)
28List<AutomationPeer> _children; 42_children = new List<AutomationPeer>(); 78protected override List<AutomationPeer> GetChildrenCore() 82foreach (AutomationPeer peer in _children)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\CategoryList.cs (1)
224protected override AutomationPeer OnCreateAutomationPeer()
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\CiderCategoryContainer.cs (1)
302protected override AutomationPeer OnCreateAutomationPeer()
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\SubPropertyEditor.cs (1)
222protected override AutomationPeer OnCreateAutomationPeer()
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyInspector.xaml.cs (1)
975protected override AutomationPeer OnCreateAutomationPeer()
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyToolBar.cs (1)
316protected override AutomationPeer OnCreateAutomationPeer()
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\Connector.cs (3)
204protected override AutomationPeer OnCreateAutomationPeer() 289private AutomationPeer wrappedAutomationPeer; 291public ConnectorAutomationPeer(FrameworkElement owner, AutomationPeer wrappedAutomationPeer)
System.Activities.Presentation\System\Activities\Presentation\View\ActivityTypeResolver.xaml.cs (1)
134protected override System.Windows.Automation.Peers.AutomationPeer OnCreateAutomationPeer()
System.Activities.Presentation\System\Activities\Presentation\View\ExpressionTextBox.xaml.cs (1)
461protected override AutomationPeer OnCreateAutomationPeer()
System.Activities.Presentation\System\Activities\Presentation\View\NamespaceDisplay.xaml.cs (1)
61protected override AutomationPeer OnCreateAutomationPeer()
System.Activities.Presentation\System\Activities\Presentation\View\TreeView\DesignerTreeViewItem.cs (1)
25protected override AutomationPeer OnCreateAutomationPeer()
System.Activities.Presentation\System\Activities\Presentation\View\TypeBrowser.xaml.cs (1)
200protected override System.Windows.Automation.Peers.AutomationPeer OnCreateAutomationPeer()
System.Activities.Presentation\System\Activities\Presentation\View\TypePresenter.xaml.cs (1)
433protected override System.Windows.Automation.Peers.AutomationPeer OnCreateAutomationPeer()
System.Activities.Presentation\System\Activities\Presentation\View\VBIdentifierDesigner.xaml.cs (1)
182protected override AutomationPeer OnCreateAutomationPeer()
System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (1)
206protected override AutomationPeer OnCreateAutomationPeer()
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemPresenter.cs (1)
687protected override AutomationPeer OnCreateAutomationPeer()
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemsPresenter.cs (1)
812protected override AutomationPeer OnCreateAutomationPeer()
System.Activities.Presentation\System\Activities\Presentation\WorkflowViewElement.cs (1)
430protected override AutomationPeer OnCreateAutomationPeer()