37 references to OwningDataGrid
PresentationFramework (37)
System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (37)
252if (this.OwningDataGrid != null && !this.OwningDataGrid.IsReadOnly && !_column.IsReadOnly) 519return this.OwningDataGrid.Columns.IndexOf(this._column); 543return this.OwningDataGrid.Items.IndexOf(this.Item); 561if (this.OwningDataGrid != null && 562(this.OwningDataGrid.HeadersVisibility & DataGridHeadersVisibility.Column) == DataGridHeadersVisibility.Column && 563this.OwningDataGrid.ColumnHeadersPresenter != null) 565DataGridColumnHeadersPresenterAutomationPeer columnHeadersPresenterPeer = UIElementAutomationPeer.CreatePeerForElement(this.OwningDataGrid.ColumnHeadersPresenter) as DataGridColumnHeadersPresenterAutomationPeer; 583if (this.OwningDataGrid != null && 584(this.OwningDataGrid.HeadersVisibility & DataGridHeadersVisibility.Row) == DataGridHeadersVisibility.Row) 586DataGridAutomationPeer dataGridAutomationPeer = UIElementAutomationPeer.CreatePeerForElement(this.OwningDataGrid) as DataGridAutomationPeer; 609if (this.OwningDataGrid.IsReadOnly || _column.IsReadOnly) 621this.OwningDataGrid.ScrollIntoView(Item, _column); 638this.OwningDataGrid.HandleSelectionForCellInput(cell, /* startDragging = */ false, /* allowsExtendSelect = */ false, /* allowsMinimalSelect = */ false); 642success = this.OwningDataGrid.BeginEdit(); 664this.OwningDataGrid.ScrollIntoView(Item, _column); 675return this.OwningDataGrid.SelectedCellsInternal.Contains(new DataGridCellInfo(Item, _column)); 696if (this.OwningDataGrid.SelectedCellsInternal.Contains(currentCellInfo)) 703if (this.OwningDataGrid.SelectionMode == DataGridSelectionMode.Single && 704this.OwningDataGrid.SelectedCells.Count > 0) 709this.OwningDataGrid.SelectedCellsInternal.Add(currentCellInfo); 722if (this.OwningDataGrid.SelectedCellsInternal.Contains(currentCellInfo)) 724this.OwningDataGrid.SelectedCellsInternal.Remove(currentCellInfo); 738this.OwningDataGrid.SelectOnlyThisCell(currentCellInfo); 759if (this.OwningDataGrid != null) 761OwningDataGrid.SetCellAutomationValue(Item, _column, value); 769if (this.OwningDataGrid != null) 771return OwningDataGrid.GetCellAutomationValue(Item, _column); 785OwningDataGrid.ScrollIntoView(Item, _column); 794if (!OwningDataGrid.IsEnabled) 825return (this.OwningDataGrid != null && (this.OwningDataGrid.SelectionUnit == DataGridSelectionUnit.Cell || 826this.OwningDataGrid.SelectionUnit == DataGridSelectionUnit.CellOrRowHeader)); 852DataGrid dataGrid = this.OwningDataGrid; 877AutomationPeer peer = UIElementAutomationPeer.CreatePeerForElement(OwningDataGrid); 904if (OwningDataGrid != null) 906DataGridAutomationPeer dataGridPeer = FrameworkElementAutomationPeer.CreatePeerForElement(OwningDataGrid) as DataGridAutomationPeer;