60 references to FromElement
Microsoft.VisualStudio.LanguageServices (1)
StackTraceExplorer\StackTraceExplorer.xaml.cs (1)
57
var peer = FrameworkElementAutomationPeer.
FromElement
(textBlock);
PresentationCore (3)
System\Windows\Automation\Peers\UIElementAutomationPeer.cs (3)
46
/// and <seealso cref="
FromElement
"/>. The type of the peer is determined by the
432
AutomationPeer peer = UIElementAutomationPeer.
FromElement
(element);
467
AutomationPeer peer = UIElementAutomationPeer.
FromElement
(element);
PresentationFramework (46)
System\Windows\Automation\Peers\GridViewAutomationPeer.cs (7)
100
ListViewAutomationPeer lvAP = UIElementAutomationPeer.
FromElement
(_listview) as ListViewAutomationPeer;
107
ListViewAutomationPeer peer = UIElementAutomationPeer.
FromElement
(_listview) as ListViewAutomationPeer;
146
ListViewAutomationPeer lvpeer = UIElementAutomationPeer.
FromElement
(_listview) as ListViewAutomationPeer;
239
AutomationPeer lvpeer = UIElementAutomationPeer.
FromElement
(_listview);
242
AutomationPeer peer = UIElementAutomationPeer.
FromElement
(lvi);
272
ListViewAutomationPeer peer = UIElementAutomationPeer.
FromElement
(_listview) as ListViewAutomationPeer;
282
AutomationPeer lvPeer = UIElementAutomationPeer.
FromElement
(_listview);
System\Windows\Automation\Peers\GridViewCellAutomationPeer.cs (1)
120
AutomationPeer peer = UIElementAutomationPeer.
FromElement
(header);
System\Windows\Automation\Peers\ListBoxItemAutomationPeer.cs (1)
60
IExpandCollapseProvider iecp = (IExpandCollapseProvider)UIElementAutomationPeer.
FromElement
(parent) as ComboBoxAutomationPeer;
System\Windows\Automation\Peers\MenuItemAutomationPeer.cs (1)
191
AutomationPeer peer = UIElementAutomationPeer.
FromElement
(uiElement);
System\Windows\Automation\Peers\ScrollBarAutomationPeer.cs (1)
80
ScrollViewerAutomationPeer svAP = UIElementAutomationPeer.
FromElement
(sv) as ScrollViewerAutomationPeer;
System\Windows\Automation\Peers\TreeViewAutomationPeer.cs (1)
171
AutomationPeer peer = UIElementAutomationPeer.
FromElement
(selectedContainer);
System\Windows\Automation\Peers\TreeViewItemAutomationPeer.cs (1)
386
AutomationPeer peer = UIElementAutomationPeer.
FromElement
(parent);
System\Windows\Controls\Calendar.cs (1)
1055
CalendarAutomationPeer peer = FrameworkElementAutomationPeer.
FromElement
(this) as CalendarAutomationPeer;
System\Windows\Controls\ComboBox.cs (2)
225
ComboBoxAutomationPeer peer = UIElementAutomationPeer.
FromElement
(comboBox) as ComboBoxAutomationPeer;
627
ComboBoxAutomationPeer peer = UIElementAutomationPeer.
FromElement
(cb) as ComboBoxAutomationPeer;
System\Windows\Controls\DataGrid.cs (6)
2454
DataGridAutomationPeer peer = DataGridAutomationPeer.
FromElement
(this) as DataGridAutomationPeer;
2481
DataGridAutomationPeer peer = DataGridAutomationPeer.
FromElement
(this) as DataGridAutomationPeer;
3126
DataGridAutomationPeer peer = DataGridAutomationPeer.
FromElement
(this) as DataGridAutomationPeer;
4313
DataGridAutomationPeer peer = DataGridAutomationPeer.
FromElement
(this) as DataGridAutomationPeer;
4566
DataGridAutomationPeer peer = DataGridAutomationPeer.
FromElement
(this) as DataGridAutomationPeer;
6888
DataGridAutomationPeer peer = DataGridAutomationPeer.
FromElement
(column.DataGridOwner) as DataGridAutomationPeer;
System\Windows\Controls\DataGridRow.cs (1)
1093
DataGridAutomationPeer gridPeer = UIElementAutomationPeer.
FromElement
(grid) as DataGridAutomationPeer;
System\Windows\Controls\DatePicker.cs (1)
483
DatePickerAutomationPeer peer = UIElementAutomationPeer.
FromElement
(dp) as DatePickerAutomationPeer;
System\Windows\Controls\Expander.cs (1)
136
ExpanderAutomationPeer peer = UIElementAutomationPeer.
FromElement
(ep) as ExpanderAutomationPeer;
System\Windows\Controls\FlowDocumentReader.cs (3)
1072
FlowDocumentReaderAutomationPeer peer = UIElementAutomationPeer.
FromElement
(this) as FlowDocumentReaderAutomationPeer;
1652
FlowDocumentReaderAutomationPeer peer = UIElementAutomationPeer.
FromElement
(viewer) as FlowDocumentReaderAutomationPeer;
1693
FlowDocumentReaderAutomationPeer peer = UIElementAutomationPeer.
FromElement
(viewer) as FlowDocumentReaderAutomationPeer;
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
1270
FlowDocumentScrollViewerAutomationPeer peer = UIElementAutomationPeer.
FromElement
(this) as FlowDocumentScrollViewerAutomationPeer;
System\Windows\Controls\ListView.cs (2)
108
ListViewAutomationPeer lvPeer = UIElementAutomationPeer.
FromElement
(listView) as ListViewAutomationPeer;
203
ListViewAutomationPeer lvPeer = UIElementAutomationPeer.
FromElement
(this) as ListViewAutomationPeer;
System\Windows\Controls\MenuItem.cs (2)
608
MenuItemAutomationPeer peer = UIElementAutomationPeer.
FromElement
(menuItem) as MenuItemAutomationPeer;
969
MenuItemAutomationPeer peer = UIElementAutomationPeer.
FromElement
(menuItem) as MenuItemAutomationPeer;
System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
1420
DocumentViewerBaseAutomationPeer peer = UIElementAutomationPeer.
FromElement
(this) as DocumentViewerBaseAutomationPeer;
System\Windows\Controls\Primitives\RangeBase.cs (3)
105
RangeBaseAutomationPeer peer = UIElementAutomationPeer.
FromElement
(ctrl) as RangeBaseAutomationPeer;
169
RangeBaseAutomationPeer peer = UIElementAutomationPeer.
FromElement
(ctrl) as RangeBaseAutomationPeer;
242
RangeBaseAutomationPeer peer = UIElementAutomationPeer.
FromElement
(ctrl) as RangeBaseAutomationPeer;
System\Windows\Controls\Primitives\Selector.cs (1)
1004
SelectorAutomationPeer selectorPeer = UIElementAutomationPeer.
FromElement
(this) as SelectorAutomationPeer;
System\Windows\Controls\Primitives\ToggleButton.cs (1)
174
ToggleButtonAutomationPeer peer = UIElementAutomationPeer.
FromElement
(button) as ToggleButtonAutomationPeer;
System\Windows\Controls\ProgressBar.cs (1)
110
ProgressBarAutomationPeer peer = UIElementAutomationPeer.
FromElement
(progressBar) as ProgressBarAutomationPeer;
System\Windows\Controls\ScrollViewer.cs (1)
2422
ScrollViewerAutomationPeer peer = UIElementAutomationPeer.
FromElement
(this) as ScrollViewerAutomationPeer;
System\Windows\Controls\TextBox.cs (1)
1053
TextBoxAutomationPeer peer = UIElementAutomationPeer.
FromElement
(this) as TextBoxAutomationPeer;
System\Windows\Controls\TreeViewItem.cs (2)
116
TreeViewItemAutomationPeer peer = UIElementAutomationPeer.
FromElement
(item) as TreeViewItemAutomationPeer;
164
TreeViewItemAutomationPeer peer = UIElementAutomationPeer.
FromElement
(item) as TreeViewItemAutomationPeer;
System\Windows\Navigation\NavigationService.cs (1)
2375
AutomationPeer peer = UIElementAutomationPeer.
FromElement
(navigatorHost) as AutomationPeer;
System\Windows\Window.cs (1)
4852
AutomationPeer peer = UIElementAutomationPeer.
FromElement
(this);
System.Windows.Controls.Ribbon (10)
Microsoft\Windows\Automation\Peers\RibbonGalleryAutomationPeer.cs (1)
173
AutomationPeer peer = UIElementAutomationPeer.
FromElement
(selectedContainers[index]);
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (1)
1343
RibbonAutomationPeer peer = UIElementAutomationPeer.
FromElement
(ribbon) as RibbonAutomationPeer;
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (1)
125
RibbonComboBoxAutomationPeer peer = UIElementAutomationPeer.
FromElement
(cb) as RibbonComboBoxAutomationPeer;
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (1)
640
RibbonGroupAutomationPeer peer = UIElementAutomationPeer.
FromElement
(group) as RibbonGroupAutomationPeer;
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (1)
1132
RibbonMenuButtonAutomationPeer peer = UIElementAutomationPeer.
FromElement
(this) as RibbonMenuButtonAutomationPeer;
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (2)
1248
RibbonMenuItemAutomationPeer peer = UIElementAutomationPeer.
FromElement
((RibbonMenuItem)d) as RibbonMenuItemAutomationPeer;
1305
RibbonMenuItemAutomationPeer peer = UIElementAutomationPeer.
FromElement
(menuItem) as RibbonMenuItemAutomationPeer;
Microsoft\Windows\Controls\Ribbon\RibbonQuickAccessToolBar.cs (1)
194
RibbonQuickAccessToolBarAutomationPeer peer = UIElementAutomationPeer.
FromElement
(qat) as RibbonQuickAccessToolBarAutomationPeer;
Microsoft\Windows\Controls\Ribbon\RibbonSplitButton.cs (2)
405
RibbonSplitButtonAutomationPeer peer = UIElementAutomationPeer.
FromElement
(this) as RibbonSplitButtonAutomationPeer;
418
RibbonSplitButtonAutomationPeer peer = UIElementAutomationPeer.
FromElement
(splitButton) as RibbonSplitButtonAutomationPeer;