189 references to Owner
PresentationFramework (172)
src\Framework\System\Windows\Automation\Peers\ButtonAutomationPeer.cs (1)
56
((Button)
Owner
).AutomationButtonBaseClick();
src\Framework\System\Windows\Automation\Peers\ButtonBaseAutomationPeer.cs (3)
34
RoutedUICommand uiCommand = ((ButtonBase)
Owner
).Command as RoutedUICommand;
49
ButtonBase owner = (ButtonBase)
Owner
;
69
ButtonBase bb = (ButtonBase)
Owner
;
src\Framework\System\Windows\Automation\Peers\CalendarAutomationPeer.cs (2)
40
return this.
Owner
as System.Windows.Controls.Calendar;
179
return this.
Owner
.GetType().Name;
src\Framework\System\Windows\Automation\Peers\CalendarButtonAutomationPeer.cs (2)
37
return (
Owner
is CalendarDayButton);
60
return
Owner
.GetType().Name;
src\Framework\System\Windows\Automation\Peers\ComboBoxAutomationPeer.cs (10)
54
ComboBox owner = (ComboBox)
Owner
;
75
ComboBox owner = (ComboBox)
Owner
;
95
ComboBox owner = (ComboBox)
Owner
;
126
ComboBox owner = (ComboBox)
Owner
;
152
ComboBox owner = (ComboBox)
Owner
;
165
return ((ComboBox)(((ComboBoxAutomationPeer)this).
Owner
)).Text;
176
ComboBox owner = (ComboBox)
Owner
;
203
ComboBox owner = (ComboBox)((ComboBoxAutomationPeer)this).
Owner
;
217
ComboBox owner = (ComboBox)((ComboBoxAutomationPeer)this).
Owner
;
227
ComboBox owner = (ComboBox)((ComboBoxAutomationPeer)this).
Owner
;
src\Framework\System\Windows\Automation\Peers\ContentTextAutomationPeer.cs (1)
46
element = ((UIElementAutomationPeer)peer).
Owner
;
src\Framework\System\Windows\Automation\Peers\DataGridAutomationPeer.cs (2)
76
return
Owner
.GetType().Name;
306
return (DataGrid)
Owner
;
src\Framework\System\Windows\Automation\Peers\DataGridCellAutomationPeer.cs (1)
50
return
Owner
.GetType().Name;
src\Framework\System\Windows\Automation\Peers\DataGridColumnHeaderAutomationPeer.cs (1)
46
return
Owner
.GetType().Name;
src\Framework\System\Windows\Automation\Peers\DataGridColumnHeaderItemAutomationPeer.cs (1)
120
((DataGridColumnHeader)wrapperPeer.
Owner
).Invoke();
src\Framework\System\Windows\Automation\Peers\DataGridColumnHeadersPresenterAutomationPeer.cs (4)
46
return
Owner
.GetType().Name;
62
ItemsControl owner = (ItemsControl)
Owner
;
164
ItemsControl owner = (ItemsControl)
Owner
;
272
return ((DataGridColumnHeadersPresenter)
Owner
).ParentDataGrid;
src\Framework\System\Windows\Automation\Peers\DataGridDetailsPresenterAutomationPeer.cs (1)
33
return this.
Owner
.GetType().Name;
src\Framework\System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (1)
600
return (DataGrid)gridPeer.
Owner
;
src\Framework\System\Windows\Automation\Peers\DataGridRowAutomationPeer.cs (2)
50
return
Owner
.GetType().Name;
129
return (DataGridRow)
Owner
;
src\Framework\System\Windows\Automation\Peers\DataGridRowHeaderAutomationPeer.cs (1)
46
return
Owner
.GetType().Name;
src\Framework\System\Windows\Automation\Peers\DatePickerAutomationPeer.cs (2)
34
return this.
Owner
as DatePicker;
114
return
Owner
.GetType().Name;
src\Framework\System\Windows\Automation\Peers\DocumentPageViewAutomationPeer.cs (1)
53
DocumentPageView owner = (DocumentPageView)
Owner
;
src\Framework\System\Windows\Automation\Peers\DocumentViewerAutomationPeer.cs (1)
52
DocumentViewer owner = (DocumentViewer)
Owner
;
src\Framework\System\Windows\Automation\Peers\DocumentViewerBaseAutomationPeer.cs (1)
115
IDocumentPaginatorSource document = ((DocumentViewerBase)
Owner
).Document;
src\Framework\System\Windows\Automation\Peers\ExpanderAutomationPeer.cs (6)
42
ToggleButton expanderToggleButton = ((Expander)
Owner
).ExpanderToggleButton;
48
if (peer.
Owner
== expanderToggleButton)
62
return ((!AccessibilitySwitches.UseNetFx47CompatibleAccessibilityFeatures && ((Expander)
Owner
).IsExpanderToggleButtonFocused)
94
Expander owner = (Expander)((ExpanderAutomationPeer)this).
Owner
;
107
Expander owner = (Expander)((ExpanderAutomationPeer)this).
Owner
;
116
Expander owner = (Expander)((ExpanderAutomationPeer)this).
Owner
;
src\Framework\System\Windows\Automation\Peers\FlowDocumentPageViewerAutomationPeer.cs (1)
45
if (
Owner
is IFlowDocumentViewer && children != null && children.Count > 0)
src\Framework\System\Windows\Automation\Peers\FlowDocumentReaderAutomationPeer.cs (2)
63
FlowDocument document = ((FlowDocumentReader)
Owner
).Document;
193
get { return (FlowDocumentReader)
Owner
; }
src\Framework\System\Windows\Automation\Peers\FlowDocumentScrollViewerAutomationPeer.cs (3)
42
FlowDocumentScrollViewer owner = (FlowDocumentScrollViewer)
Owner
;
88
if (!(
Owner
is IFlowDocumentViewer))
92
FlowDocument document = ((FlowDocumentScrollViewer)
Owner
).Document;
src\Framework\System\Windows\Automation\Peers\FrameworkElementAutomationPeer.cs (5)
34
FrameworkElement owner = (FrameworkElement)
Owner
;
35
result =
Owner
.Uid;
58
result = ((FrameworkElement)
Owner
).GetPlainText();
70
object toolTip = ((FrameworkElement)
Owner
).ToolTip;
97
DependencyObject owner =
Owner
;
src\Framework\System\Windows\Automation\Peers\GridSplitterAutomationPeer.cs (1)
57
((GridSplitter)
Owner
).KeyboardMoveSplitter(x, y);
src\Framework\System\Windows\Automation\Peers\GridViewCellAutomationPeer.cs (6)
43
return
Owner
.GetType().Name;
49
if (
Owner
is TextBlock)
74
if (
Owner
is TextBlock)
79
return includeInvisibleItems ||
Owner
.IsVisible;
83
List<AutomationPeer> children = GetChildrenAutomationPeer(
Owner
, includeInvisibleItems);
110
ListView listview = _listviewAP.
Owner
as ListView;
src\Framework\System\Windows\Automation\Peers\GridViewColumnHeaderAutomationPeer.cs (2)
66
GridViewColumnHeader owner = (GridViewColumnHeader)
Owner
;
99
GridViewColumnHeader header =
Owner
as GridViewColumnHeader;
src\Framework\System\Windows\Automation\Peers\GridViewHeaderRowPresenterAutomationPeer.cs (1)
62
GridViewColumnHeader header = ((UIElementAutomationPeer)peer).
Owner
as GridViewColumnHeader;
src\Framework\System\Windows\Automation\Peers\GridViewItemAutomationPeer.cs (1)
47
ListView listview = _listviewAP.
Owner
as ListView;
src\Framework\System\Windows\Automation\Peers\GroupBoxAutomationPeer.cs (1)
44
GroupBox groupBox = (GroupBox)
Owner
;
src\Framework\System\Windows\Automation\Peers\GroupItemAutomationPeer.cs (8)
49
GroupItem groupItem = (GroupItem)
Owner
;
78
GroupItem groupItem = (GroupItem)
Owner
;
104
GroupItem groupItem = (GroupItem)
Owner
;
122
GroupItem owner = (GroupItem)
Owner
;
123
ItemsControl itemsControl = ItemsControl.ItemsControlFromItemContainer(
Owner
);
287
ItemsControl itemsControl = ItemsControl.ItemsControlFromItemContainer(
Owner
);
290
CollectionViewGroupInternal cvg = itemsControl.ItemContainerGenerator.ItemFromContainer(
Owner
) as CollectionViewGroupInternal;
311
GroupItem owner = (GroupItem)
Owner
;
src\Framework\System\Windows\Automation\Peers\HwndHostAutomationPeer.cs (1)
45
HwndHost host = (HwndHost)
Owner
;
src\Framework\System\Windows\Automation\Peers\ItemAutomationPeer.cs (4)
95
ItemsControl owner = (ItemsControl)(itemsControlAutomationPeer.
Owner
);
252
ItemsControl parentItemsControl = (ItemsControl)ItemsControlAutomationPeer.
Owner
;
286
ItemsControl parentItemsControl = (ItemsControl)ItemsControlAutomationPeer.
Owner
;
696
ItemsControl parent = itemsControlAutomationPeer.
Owner
as ItemsControl;
src\Framework\System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (6)
37
ItemsControl owner = (ItemsControl)
Owner
;
50
if(
Owner
as ItemsControl != null)
69
ItemsControl owner = (ItemsControl)
Owner
;
236
ItemsControl owner = this.
Owner
as ItemsControl;
258
ItemsControl owner = (ItemsControl)
Owner
;
428
ItemsControl itemsControl = (ItemsControl)
Owner
;
src\Framework\System\Windows\Automation\Peers\LabelAutomationPeer.cs (1)
43
Label label = (Label)
Owner
;
src\Framework\System\Windows\Automation\Peers\ListBoxItemAutomationPeer.cs (2)
55
ComboBox parent = ItemsControlAutomationPeer.
Owner
as ComboBox;
68
ListBox parent = ItemsControlAutomationPeer.
Owner
as ListBox;
src\Framework\System\Windows\Automation\Peers\MenuItemAutomationPeer.cs (12)
43
MenuItem owner = (MenuItem)
Owner
;
96
MenuItem owner = (MenuItem)
Owner
;
120
MenuItem owner = (MenuItem)
Owner
;
134
MenuItem menuItem = (MenuItem)
Owner
;
155
ItemsControl owner = (ItemsControl)
Owner
;
185
MenuItem owner = (MenuItem)
Owner
;
203
MenuItem owner = (MenuItem)
Owner
;
221
MenuItem owner = (MenuItem)
Owner
;
243
MenuItem owner = (MenuItem)
Owner
;
263
MenuItem owner = (MenuItem)
Owner
;
278
MenuItem owner = (MenuItem)
Owner
;
301
MenuItem menuItem = (MenuItem)
Owner
;
src\Framework\System\Windows\Automation\Peers\PasswordBoxAutomationPeer.cs (3)
76
_textPattern = new TextAdaptor(this, ((PasswordBox)
Owner
).TextContainer);
83
PasswordBox owner = (PasswordBox)
Owner
;
136
PasswordBox owner = (PasswordBox)
Owner
;
src\Framework\System\Windows\Automation\Peers\ProgressBarAutomationPeer.cs (1)
37
if (patternInterface == PatternInterface.RangeValue && ((ProgressBar)
Owner
).IsIndeterminate)
src\Framework\System\Windows\Automation\Peers\RadioButtonAutomationPeer.cs (4)
62
((RadioButton)
Owner
).SetCurrentValueInternal(RadioButton.IsCheckedProperty, MS.Internal.KnownBoxes.BooleanBoxes.TrueBox);
71
if (((RadioButton)
Owner
).IsChecked != true)
82
if (((RadioButton)
Owner
).IsChecked == true)
95
return ((RadioButton)
Owner
).IsChecked == true;
src\Framework\System\Windows\Automation\Peers\RangeBaseAutomationPeer.cs (6)
62
RangeBase owner = (RangeBase)
Owner
;
91
return ((RangeBase)
Owner
).Value;
110
return ((RangeBase)
Owner
).Maximum;
119
return ((RangeBase)
Owner
).Minimum;
128
return ((RangeBase)
Owner
).LargeChange;
137
return ((RangeBase)
Owner
).SmallChange;
src\Framework\System\Windows\Automation\Peers\RepeatButtonAutomationPeer.cs (1)
55
RepeatButton owner = (RepeatButton)
Owner
;
src\Framework\System\Windows\Automation\Peers\RichTextBoxAutomationPeer.cs (3)
45
RichTextBox owner = (RichTextBox)
Owner
;
80
RichTextBox owner = (RichTextBox)
Owner
;
92
RichTextBox owner = (RichTextBox)
Owner
;
src\Framework\System\Windows\Automation\Peers\ScrollBarAutomationPeer.cs (2)
49
return ((ScrollBar)
Owner
).Orientation == Orientation.Horizontal ?
59
ScrollBar sb =
Owner
as ScrollBar;
src\Framework\System\Windows\Automation\Peers\ScrollViewerAutomationPeer.cs (9)
41
ScrollViewer sv = (ScrollViewer)
Owner
;
87
ScrollViewer owner = (ScrollViewer)
Owner
;
150
ScrollViewer owner = (ScrollViewer)
Owner
;
185
ScrollViewer owner = (ScrollViewer)
Owner
;
199
ScrollViewer owner = (ScrollViewer)
Owner
;
212
ScrollViewer owner = (ScrollViewer)
Owner
;
226
ScrollViewer owner = (ScrollViewer)
Owner
;
272
ScrollViewer owner = (ScrollViewer)
Owner
;
280
ScrollViewer owner = (ScrollViewer)
Owner
;
src\Framework\System\Windows\Automation\Peers\SelectorAutomationPeer.cs (3)
94
Selector owner = (Selector)
Owner
;
120
Selector owner = (Selector)
Owner
;
149
Selector owner = (Selector)
Owner
;
src\Framework\System\Windows\Automation\Peers\SelectorItemAutomationPeer.cs (4)
48
Selector parentSelector = (Selector)(ItemsControlAutomationPeer.
Owner
);
66
Selector parentSelector = (Selector)(ItemsControlAutomationPeer.
Owner
);
88
Selector parentSelector = (Selector)(ItemsControlAutomationPeer.
Owner
);
104
Selector parentSelector = (Selector)(ItemsControlAutomationPeer.
Owner
);
src\Framework\System\Windows\Automation\Peers\StatusBarAutomationPeer.cs (1)
43
ItemsControl itemscontrol =
Owner
as ItemsControl;
src\Framework\System\Windows\Automation\Peers\TabItemAutomationPeer.cs (2)
67
TabControl parentTabControl = ItemsControlAutomationPeer.
Owner
as TabControl;
106
Selector parentSelector = (Selector)(ItemsControlAutomationPeer.
Owner
);
src\Framework\System\Windows\Automation\Peers\TextAutomationPeer.cs (2)
41
string result = AutomationProperties.GetName(this.
Owner
);
72
element = ((UIElementAutomationPeer)peer).
Owner
;
src\Framework\System\Windows\Automation\Peers\TextBlockAutomationPeer.cs (2)
37
TextBlock owner = (TextBlock)
Owner
;
69
TextBlock tb = (TextBlock)
Owner
;
src\Framework\System\Windows\Automation\Peers\TextBoxAutomationPeer.cs (5)
52
_textPattern = new TextAdaptor(this, ((TextBoxBase)
Owner
).TextContainer);
59
TextBox owner = (TextBox)
Owner
;
78
TextBox owner = (TextBox)
Owner
;
87
TextBox owner = (TextBox)
Owner
;
97
TextBox owner = (TextBox)
Owner
;
src\Framework\System\Windows\Automation\Peers\ToggleButtonAutomationPeer.cs (2)
54
ToggleButton owner = (ToggleButton)
Owner
;
62
ToggleButton owner = (ToggleButton)
Owner
;
src\Framework\System\Windows\Automation\Peers\TreeViewAutomationPeer.cs (3)
48
ItemsControl owner = (ItemsControl)
Owner
;
72
ItemsControl owner = (ItemsControl)
Owner
;
165
TreeViewItem selectedContainer = ((TreeView)
Owner
).SelectedContainer;
src\Framework\System\Windows\Automation\Peers\TreeViewDataItemAutomationPeer.cs (2)
40
if(itemsControlAutomationPeer.
Owner
is TreeView || parentDataItemAutomationPeer == null)
319
ItemsControl parent = itemsControlAutomationPeer.
Owner
as ItemsControl;
src\Framework\System\Windows\Automation\Peers\TreeViewItemAutomationPeer.cs (13)
65
TreeViewItem owner =
Owner
as TreeViewItem;
101
object dataItem = (child as UIElement) != null ? (logicalParentAp.
Owner
as ItemsControl).GetItemOrContainerFromContainer(child as UIElement) : child;
281
TreeViewItem treeViewItem = (TreeViewItem)
Owner
;
297
TreeViewItem treeViewItem = (TreeViewItem)
Owner
;
311
TreeViewItem treeViewItem = (TreeViewItem)
Owner
;
341
((TreeViewItem)
Owner
).IsSelected = true;
349
TreeView treeView = ((TreeViewItem)
Owner
).ParentTreeView;
351
if (treeView == null || (treeView.SelectedItem != null && treeView.SelectedContainer !=
Owner
))
355
((TreeViewItem)
Owner
).IsSelected = true;
363
((TreeViewItem)
Owner
).IsSelected = false;
373
return ((TreeViewItem)
Owner
).IsSelected;
384
ItemsControl parent = ((TreeViewItem)
Owner
).ParentItemsControl;
398
((TreeViewItem)
Owner
).BringIntoView();
src\Framework\System\Windows\Automation\Peers\UserControlAutomationPeer.cs (1)
20
return
Owner
.GetType().Name;
src\Framework\System\Windows\Automation\Peers\WindowAutomationPeer.cs (2)
46
Window window = (Window)
Owner
;
79
Window window = (Window)
Owner
;
System.Activities.Core.Presentation (6)
System\Activities\Core\Presentation\FlowchartExpressionAutomationPeer.cs (6)
25
Fx.Assert(this.
Owner
!= null, "FlowchartExpressionAutomationPeer should have this.Owner != null.");
27
if (this.
Owner
is FlowDecisionDesigner)
29
expressionShown = ((FlowDecisionDesigner)this.
Owner
).ExpressionShown;
33
Fx.Assert(this.
Owner
is FlowSwitchDesigner, "this.Owner should either be FlowDecisionDesigner or FlowSwitchDesigner.");
34
expressionShown = ((FlowSwitchDesigner)this.
Owner
).ExpressionShown;
36
return expressionShown ? FlowchartExpressionAdorner.GetExpressionString(this.
Owner
) : ExpressionNotShown;
System.Activities.Presentation (11)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Automation\PropertyInspectorAutomationPeer.cs (2)
79
return this.
Owner
.PointToScreen(new Point(10, 10));
140
Owner
.PreviewGotKeyboardFocus -= new KeyboardFocusChangedEventHandler(OnPreviewGotKeyboardFocus);
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\Connector.cs (3)
303
UIElement sourceDesigner = VirtualizedContainerService.TryGetVirtualizedElement(FreeFormPanel.GetSourceConnectionPoint(this.
Owner
).ParentDesigner);
305
UIElement destinationDesigner = VirtualizedContainerService.TryGetVirtualizedElement(FreeFormPanel.GetDestinationConnectionPoint(this.
Owner
).ParentDesigner);
307
return string.Format(CultureInfo.InvariantCulture, "Source={0} Destination={1} Points={2}", sourceId, destinationId, ((Connector)this.
Owner
).Points);
System.Activities.Presentation\System\Activities\Presentation\View\ActivityTypeResolver.xaml.cs (1)
310
return ((ActivityTypeResolver)this.
Owner
).Resources["ActivityTypeResolverAutomationName"] as string;
System.Activities.Presentation\System\Activities\Presentation\View\ExpressionTextBoxAutomationPeer.cs (1)
23
ExpressionTextBox expressionTextBox = this.
Owner
as ExpressionTextBox;
System.Activities.Presentation\System\Activities\Presentation\View\NamespaceDisplayAutomationPeer.cs (1)
24
NamespaceDisplay namespaceDisplay = this.
Owner
as NamespaceDisplay;
System.Activities.Presentation\System\Activities\Presentation\View\TypeBrowser.xaml.cs (1)
878
return ((TypeBrowser)this.
Owner
).Resources["TypeBrowserAutomationName"] as string;
System.Activities.Presentation\System\Activities\Presentation\View\VBIdentifierDesigner.xaml.cs (1)
197
VBIdentifierDesigner vbIdentifierDesigner = this.
Owner
as VBIdentifierDesigner;
System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditorAutomationPeer.cs (1)
23
VisualBasicEditor textBox = this.
Owner
as VisualBasicEditor;