System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (37)
258if (this.OwningDataGrid != null && !this.OwningDataGrid.IsReadOnly && !_column.IsReadOnly)
525return this.OwningDataGrid.Columns.IndexOf(this._column);
549return this.OwningDataGrid.Items.IndexOf(this.Item);
567if (this.OwningDataGrid != null &&
568(this.OwningDataGrid.HeadersVisibility & DataGridHeadersVisibility.Column) == DataGridHeadersVisibility.Column &&
569this.OwningDataGrid.ColumnHeadersPresenter != null)
571DataGridColumnHeadersPresenterAutomationPeer columnHeadersPresenterPeer = UIElementAutomationPeer.CreatePeerForElement(this.OwningDataGrid.ColumnHeadersPresenter) as DataGridColumnHeadersPresenterAutomationPeer;
589if (this.OwningDataGrid != null &&
590(this.OwningDataGrid.HeadersVisibility & DataGridHeadersVisibility.Row) == DataGridHeadersVisibility.Row)
592DataGridAutomationPeer dataGridAutomationPeer = UIElementAutomationPeer.CreatePeerForElement(this.OwningDataGrid) as DataGridAutomationPeer;
615if (this.OwningDataGrid.IsReadOnly || _column.IsReadOnly)
627this.OwningDataGrid.ScrollIntoView(Item, _column);
644this.OwningDataGrid.HandleSelectionForCellInput(cell, /* startDragging = */ false, /* allowsExtendSelect = */ false, /* allowsMinimalSelect = */ false);
648success = this.OwningDataGrid.BeginEdit();
670this.OwningDataGrid.ScrollIntoView(Item, _column);
681return this.OwningDataGrid.SelectedCellsInternal.Contains(new DataGridCellInfo(Item, _column));
702if (this.OwningDataGrid.SelectedCellsInternal.Contains(currentCellInfo))
709if (this.OwningDataGrid.SelectionMode == DataGridSelectionMode.Single &&
710this.OwningDataGrid.SelectedCells.Count > 0)
715this.OwningDataGrid.SelectedCellsInternal.Add(currentCellInfo);
728if (this.OwningDataGrid.SelectedCellsInternal.Contains(currentCellInfo))
730this.OwningDataGrid.SelectedCellsInternal.Remove(currentCellInfo);
744this.OwningDataGrid.SelectOnlyThisCell(currentCellInfo);
765if (this.OwningDataGrid != null)
767OwningDataGrid.SetCellAutomationValue(Item, _column, value);
775if (this.OwningDataGrid != null)
777return OwningDataGrid.GetCellAutomationValue(Item, _column);
791OwningDataGrid.ScrollIntoView(Item, _column);
800if (!OwningDataGrid.IsEnabled)
831return (this.OwningDataGrid != null && (this.OwningDataGrid.SelectionUnit == DataGridSelectionUnit.Cell ||
832this.OwningDataGrid.SelectionUnit == DataGridSelectionUnit.CellOrRowHeader));
858DataGrid dataGrid = this.OwningDataGrid;
883AutomationPeer peer = UIElementAutomationPeer.CreatePeerForElement(OwningDataGrid);
910if (OwningDataGrid != null)
912DataGridAutomationPeer dataGridPeer = FrameworkElementAutomationPeer.CreatePeerForElement(OwningDataGrid) as DataGridAutomationPeer;