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