247 references to DataGridHelper
PresentationFramework (247)
System\Windows\Controls\DataGrid.cs (26)
603if (DataGridHelper.ShouldNotifyDataGrid(target)) 627if (DataGridHelper.ShouldNotifyRowSubtree(target)) 638if (DataGridHelper.ShouldNotifyColumnCollection(target) || DataGridHelper.ShouldNotifyColumns(target)) 643if ((DataGridHelper.ShouldNotifyColumnHeadersPresenter(target) || DataGridHelper.ShouldNotifyColumnHeaders(target)) && ColumnHeadersPresenter != null) 903if (!DataGridHelper.IsDefaultValue(d, DataGrid.RowStyleProperty)) 1015if (!DataGridHelper.IsDefaultValue(d, DataGrid.RowStyleSelectorProperty)) 1901_internalScrollContentPresenter = DataGridHelper.FindVisualParent<ScrollContentPresenter>(_internalItemsHost); 1906_internalScrollContentPresenter = DataGridHelper.FindVisualParent<ScrollContentPresenter>(row); 1918_internalScrollHost = DataGridHelper.FindVisualParent<ScrollViewer>(_internalItemsHost); 1923_internalScrollHost = DataGridHelper.FindVisualParent<ScrollViewer>(row); 2288return ((source == this) || (source == null)) ? CurrentCellContainer : DataGridHelper.FindVisualParent<DataGridCell>(source); 3748if (DataGridHelper.IsDefaultValue(this, CanUserAddRowsProperty)) 5587GroupItem currentGroupItem = DataGridHelper.FindVisualParent<GroupItem>(currentCellContainer); 5849DataGridRow focusRow = DataGridHelper.FindVisualParent<DataGridRow>(focusContainer); 6145startingRow = DataGridHelper.FindVisualParent<DataGridRow>(startingElement); 6163targetRowElement = DataGridHelper.FindVisualParent<DataGridRow>(targetElement); 6573row = DataGridHelper.FindVisualParent<DataGridRow>(element); 6594cell = DataGridHelper.FindVisualParent<DataGridCell>(element); 7048if (DataGridHelper.IsPropertyTransferEnabled(dataGrid, CanUserSortColumnsProperty) && 7049DataGridHelper.IsDefaultValue(dataGrid, CanUserSortColumnsProperty) && 7060DataGridHelper.TransferProperty(dataGrid, CanUserSortColumnsProperty); 7625DataGridHelper.TransferProperty(this, CanUserSortColumnsProperty); 8041if (!DataGridHelper.IsDefaultValue(d, DataGrid.EnableRowVirtualizationProperty)) 8476CellsPanelHorizontalOffset = DataGridHelper.GetParentCellsPanelHorizontalOffset(cell);
System\Windows\Controls\DataGridBoundColumn.cs (2)
34var bindingSortMemberPath = DataGridHelper.GetPathFromBinding(column.Binding as Binding); 72if (DataGridHelper.IsOneWay(_binding))
System\Windows\Controls\DataGridCell.cs (25)
128DataGridHelper.TransferProperty(this, StyleProperty); 129DataGridHelper.TransferProperty(this, IsReadOnlyProperty); 197DataGridHelper.TransferProperty(this, StyleProperty); 198DataGridHelper.TransferProperty(this, IsReadOnlyProperty); 244if (DataGridHelper.ShouldNotifyCells(target)) 248DataGridHelper.OnColumnWidthChanged(this, e); 252DataGridHelper.TransferProperty(this, StyleProperty); 256DataGridHelper.TransferProperty(this, IsReadOnlyProperty); 269if (DataGridHelper.ShouldRefreshCellContent(target)) 292return DataGridHelper.GetCoercedTransferPropertyValue( 433if (DataGridHelper.BindingExpressionBelongsToElement<DataGridCell>(bindingExpressionsCopy[i], this)) 535return DataGridHelper.GetCoercedTransferPropertyValue( 548DataGridCell cell = DataGridHelper.FindVisualParent<DataGridCell>(e.OriginalSource as UIElement); 561DataGridCell cell = DataGridHelper.FindVisualParent<DataGridCell>(e.OriginalSource as UIElement); 781bool horizontalLinesVisible = DataGridHelper.IsGridLineVisible(dataGridOwner, /*isHorizontal = */ true); 782bool verticalLinesVisible = DataGridHelper.IsGridLineVisible(dataGridOwner, /*isHorizontal = */ false); 789constraint = DataGridHelper.SubtractFromSize(constraint, horizontalLineThickness, /*height = */ true); 794constraint = DataGridHelper.SubtractFromSize(constraint, verticalLineThickness, /*height = */ false); 817bool horizontalLinesVisible = DataGridHelper.IsGridLineVisible(dataGridOwner, /*isHorizontal = */ true); 818bool verticalLinesVisible = DataGridHelper.IsGridLineVisible(dataGridOwner, /*isHorizontal = */ false); 824arrangeSize = DataGridHelper.SubtractFromSize(arrangeSize, horizontalLineThickness, /*height = */ true); 829arrangeSize = DataGridHelper.SubtractFromSize(arrangeSize, verticalLineThickness, /*height = */ false); 852if (DataGridHelper.IsGridLineVisible(dataGrid, /*isHorizontal = */ false)) 863if (DataGridHelper.IsGridLineVisible(dataGrid, /*isHorizontal = */ true)) 1041Geometry frozenGeometry = DataGridHelper.GetFrozenClipForCell(cell);
System\Windows\Controls\DataGridCellsPanel.cs (2)
976if (child != null && DataGridHelper.TreeHasFocusAndTabStop(child)) 2024IHierarchicalVirtualizationAndScrollInfo hvsInfo = DataGridHelper.FindParent<GroupItem>(parentRowsPresenter) as IHierarchicalVirtualizationAndScrollInfo;
System\Windows\Controls\DataGridColumn.cs (39)
54return DataGridHelper.GetCoercedTransferPropertyValue( 129return DataGridHelper.GetCoercedTransferPropertyValue( 163return (bool)DataGridHelper.GetCoercedTransferPropertyValue( 270double displayValue = DataGridHelper.CoerceToMinMax(changedWidth.DesiredValue, column.MinWidth, column.MaxWidth); 390DataGridLength width = (DataGridLength)DataGridHelper.GetCoercedTransferPropertyValue( 399newDisplayValue = (double.IsNaN(newDisplayValue) ? newDisplayValue : DataGridHelper.CoerceToMinMax(newDisplayValue, column.MinWidth, column.MaxWidth)); 418return DataGridHelper.GetCoercedTransferPropertyValue( 432double transferValue = (double)DataGridHelper.GetCoercedTransferPropertyValue( 547double displayWidth = DataGridHelper.CoerceToMinMax(pixelWidth, minWidth, maxWidth); 562double originalDesiredValue = DataGridHelper.CoerceToMinMax(width.DesiredValue, minWidth, maxWidth); 704DataGridHelper.UpdateTarget(editingElement); 714return DataGridHelper.ValidateWithoutUpdate(editingElement); 810if (DataGridHelper.ShouldNotifyColumns(target)) 818DataGridHelper.TransferProperty(this, MaxWidthProperty); 822DataGridHelper.TransferProperty(this, MinWidthProperty); 826DataGridHelper.TransferProperty(this, WidthProperty); 830DataGridHelper.TransferProperty(this, HeaderStyleProperty); 834DataGridHelper.TransferProperty(this, CellStyleProperty); 838DataGridHelper.TransferProperty(this, IsReadOnlyProperty); 842DataGridHelper.TransferProperty(this, DragIndicatorStyleProperty); 850DataGridHelper.TransferProperty(this, CanUserSortProperty); 854DataGridHelper.TransferProperty(this, CanUserResizeProperty); 858DataGridHelper.TransferProperty(this, CanUserReorderProperty); 912DataGridHelper.TransferProperty(this, MinWidthProperty); 913DataGridHelper.TransferProperty(this, MaxWidthProperty); 914DataGridHelper.TransferProperty(this, WidthProperty); 915DataGridHelper.TransferProperty(this, HeaderStyleProperty); 916DataGridHelper.TransferProperty(this, CellStyleProperty); 917DataGridHelper.TransferProperty(this, IsReadOnlyProperty); 918DataGridHelper.TransferProperty(this, DragIndicatorStyleProperty); 919DataGridHelper.TransferProperty(this, CanUserSortProperty); 920DataGridHelper.TransferProperty(this, CanUserReorderProperty); 921DataGridHelper.TransferProperty(this, CanUserResizeProperty); 1059return DataGridHelper.GetCoercedTransferPropertyValue( 1075if (!DataGridHelper.IsPropertyTransferEnabled(d, CanUserSortProperty)) 1078DataGridHelper.TransferProperty(d, CanUserSortProperty); 1312return DataGridHelper.GetCoercedTransferPropertyValue( 1338return DataGridHelper.GetCoercedTransferPropertyValue( 1471return DataGridHelper.GetCoercedTransferPropertyValue(
System\Windows\Controls\DataGridColumnCollection.cs (8)
163if (DataGridHelper.ShouldNotifyColumnCollection(target)) 206if (DataGridHelper.ShouldNotifyColumns(target)) 277if (DataGridHelper.IsDefaultValue(column, DataGridColumn.DisplayIndexProperty)) 512bool hasDefaultDisplayIndex = DataGridHelper.IsDefaultValue(currentColumn, DataGridColumn.DisplayIndexProperty); 654if (displayIndex == -1 && DataGridHelper.IsDefaultValue(column, DataGridColumn.DisplayIndexProperty)) 1187double displayValue = DataGridHelper.CoerceToMinMax(double.IsNaN(width.DesiredValue) ? minWidth : width.DesiredValue, minWidth, column.MaxWidth); 1387double newDesiredValue = DataGridHelper.CoerceToMinMax(width.DesiredValue, changedColumn.MinWidth, changedColumn.MaxWidth); 1927double columnDisplayWidth = DataGridHelper.CoerceToMinMax(width.DisplayValue + widthDelta, column.MinWidth, column.MaxWidth);
System\Windows\Controls\DataGridComboBoxColumn.cs (14)
59var bindingSortMemberPath = DataGridHelper.GetPathFromBinding(column.EffectiveBinding as Binding); 119if (DataGridHelper.IsOneWay(EffectiveBinding)) 432DataGridHelper.SyncColumnProperty(this, comboBox, ComboBox.SelectedValuePathProperty, SelectedValuePathProperty); 435DataGridHelper.SyncColumnProperty(this, comboBox, ComboBox.DisplayMemberPathProperty, DisplayMemberPathProperty); 438DataGridHelper.SyncColumnProperty(this, comboBox, ComboBox.ItemsSourceProperty, ItemsSourceProperty); 492DataGridHelper.RestoreFlowDirection(comboBox, cell); 507DataGridHelper.RestoreFlowDirection(comboBox, cell); 518DataGridHelper.SyncColumnProperty(this, comboBox, ComboBox.SelectedValuePathProperty, SelectedValuePathProperty); 519DataGridHelper.SyncColumnProperty(this, comboBox, ComboBox.DisplayMemberPathProperty, DisplayMemberPathProperty); 520DataGridHelper.SyncColumnProperty(this, comboBox, ComboBox.ItemsSourceProperty, ItemsSourceProperty); 563DataGridHelper.CacheFlowDirection(cb.EditableTextBoxSite, cb.Parent as DataGridCell); 564DataGridHelper.CacheFlowDirection(cb, cb.Parent as DataGridCell); 580DataGridHelper.CacheFlowDirection(cb.EditableTextBoxSite, cb.Parent as DataGridCell); 581DataGridHelper.CacheFlowDirection(cb, cb.Parent as DataGridCell);
System\Windows\Controls\DataGridHelper.cs (2)
613private static readonly DependencyProperty FlowDirectionCacheProperty = DependencyProperty.Register("FlowDirectionCache", typeof(FlowDirection), typeof(DataGridHelper)); 631object flowDirectionObj = cell.ReadLocalValue(DataGridHelper.FlowDirectionCacheProperty);
System\Windows\Controls\DataGridHyperlinkColumn.cs (6)
180DataGridHelper.RestoreFlowDirection(outerBlock, cell); 195DataGridHelper.RestoreFlowDirection(textBox, cell); 249DataGridHelper.CacheFlowDirection(editingElement, editingElement != null ? editingElement.Parent as DataGridCell : null); 261DataGridHelper.CacheFlowDirection(editingElement, editingElement != null ? editingElement.Parent as DataGridCell : null); 276if (DataGridHelper.HasNonEscapeCharacters(e as TextCompositionEventArgs)) 280else if (DataGridHelper.IsImeProcessed(e as KeyEventArgs))
System\Windows\Controls\DataGridRow.cs (34)
607return DataGridHelper.GetCoercedTransferPropertyValue( 618return DataGridHelper.GetCoercedTransferPropertyValue( 629return DataGridHelper.GetCoercedTransferPropertyValue( 645coercedValue = DataGridHelper.GetCoercedTransferPropertyValue( 654coercedValue = DataGridHelper.GetCoercedTransferPropertyValue( 670return DataGridHelper.GetCoercedTransferPropertyValue( 681return DataGridHelper.GetCoercedTransferPropertyValue( 692return DataGridHelper.GetCoercedTransferPropertyValue( 703object visibility = DataGridHelper.GetCoercedTransferPropertyValue( 866if (DataGridHelper.ShouldNotifyRows(target)) 871DataGridHelper.TransferProperty(this, BackgroundProperty); 875DataGridHelper.TransferProperty(this, HeaderStyleProperty); 879DataGridHelper.TransferProperty(this, HeaderTemplateProperty); 883DataGridHelper.TransferProperty(this, HeaderTemplateSelectorProperty); 887DataGridHelper.TransferProperty(this, ValidationErrorTemplateProperty); 891DataGridHelper.TransferProperty(this, DetailsTemplateProperty); 892DataGridHelper.TransferProperty(this, DetailsVisibilityProperty); 896DataGridHelper.TransferProperty(this, DetailsTemplateSelectorProperty); 897DataGridHelper.TransferProperty(this, DetailsVisibilityProperty); 901DataGridHelper.TransferProperty(this, DetailsVisibilityProperty); 924if (DataGridHelper.ShouldNotifyDetailsPresenter(target)) 929if (DataGridHelper.ShouldNotifyCellsPresenter(target) || 930DataGridHelper.ShouldNotifyCells(target) || 931DataGridHelper.ShouldRefreshCellContent(target)) 937if (DataGridHelper.ShouldNotifyRowHeaders(target) && RowHeader != null) 977DataGridHelper.TransferProperty(this, BackgroundProperty); 978DataGridHelper.TransferProperty(this, HeaderStyleProperty); 979DataGridHelper.TransferProperty(this, HeaderTemplateProperty); 980DataGridHelper.TransferProperty(this, HeaderTemplateSelectorProperty); 981DataGridHelper.TransferProperty(this, ValidationErrorTemplateProperty); 982DataGridHelper.TransferProperty(this, DetailsTemplateProperty); 983DataGridHelper.TransferProperty(this, DetailsTemplateSelectorProperty); 984DataGridHelper.TransferProperty(this, DetailsVisibilityProperty); 1301return DataGridHelper.FindVisualParent<DataGridRow>(element);
System\Windows\Controls\DataGridTextColumn.cs (16)
88DataGridHelper.RestoreFlowDirection(textBlock, cell); 105DataGridHelper.RestoreFlowDirection(textBox, cell); 112DataGridHelper.SyncColumnProperty(this, e, TextElement.FontFamilyProperty, FontFamilyProperty); 113DataGridHelper.SyncColumnProperty(this, e, TextElement.FontSizeProperty, FontSizeProperty); 114DataGridHelper.SyncColumnProperty(this, e, TextElement.FontStyleProperty, FontStyleProperty); 115DataGridHelper.SyncColumnProperty(this, e, TextElement.FontWeightProperty, FontWeightProperty); 116DataGridHelper.SyncColumnProperty(this, e, TextElement.ForegroundProperty, ForegroundProperty); 132DataGridHelper.SyncColumnProperty(this, textElement, TextElement.FontFamilyProperty, FontFamilyProperty); 135DataGridHelper.SyncColumnProperty(this, textElement, TextElement.FontSizeProperty, FontSizeProperty); 138DataGridHelper.SyncColumnProperty(this, textElement, TextElement.FontStyleProperty, FontStyleProperty); 141DataGridHelper.SyncColumnProperty(this, textElement, TextElement.FontWeightProperty, FontWeightProperty); 144DataGridHelper.SyncColumnProperty(this, textElement, TextElement.ForegroundProperty, ForegroundProperty); 219DataGridHelper.CacheFlowDirection(editingElement, editingElement != null ? editingElement.Parent as DataGridCell : null); 231DataGridHelper.CacheFlowDirection(editingElement, editingElement != null ? editingElement.Parent as DataGridCell : null); 258if (DataGridHelper.HasNonEscapeCharacters(e as TextCompositionEventArgs)) 262else if (DataGridHelper.IsImeProcessed(e as KeyEventArgs))
System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (15)
104DataGridHelper.TransferProperty(this, HeightProperty); 105DataGridHelper.TransferProperty(this, MinHeightProperty); 106DataGridHelper.TransferProperty(this, VirtualizingPanel.IsVirtualizingProperty); 196return DataGridHelper.GetCoercedTransferPropertyValue( 207return DataGridHelper.GetCoercedTransferPropertyValue( 376if (DataGridHelper.ShouldNotifyCellsPresenter(target)) 405DataGridHelper.TransferProperty(this, HeightProperty); 409DataGridHelper.TransferProperty(this, MinHeightProperty); 413DataGridHelper.TransferProperty(this, VirtualizingPanel.IsVirtualizingProperty); 417if (DataGridHelper.ShouldNotifyCells(target) || 418DataGridHelper.ShouldRefreshCellContent(target)) 475if (DataGridHelper.IsGridLineVisible(dataGrid, /*isHorizontal = */ true)) 497DataGridHelper.TransferProperty(cellsPresenter, VirtualizingPanel.IsVirtualizingProperty); 510return DataGridHelper.GetCoercedTransferPropertyValue( 614get { return DataGridHelper.FindParent<DataGridRow>(this); }
System\Windows\Controls\Primitives\DataGridColumnHeader.cs (20)
108DataGridHelper.TransferProperty(this, ContentProperty); 109DataGridHelper.TransferProperty(this, ContentTemplateProperty); 110DataGridHelper.TransferProperty(this, ContentTemplateSelectorProperty); 111DataGridHelper.TransferProperty(this, ContentStringFormatProperty); 112DataGridHelper.TransferProperty(this, StyleProperty); 113DataGridHelper.TransferProperty(this, HeightProperty); 398DataGridHelper.OnColumnWidthChanged(this, e); 402DataGridHelper.TransferProperty(this, ContentProperty); 406DataGridHelper.TransferProperty(this, ContentTemplateProperty); 410DataGridHelper.TransferProperty(this, ContentTemplateSelectorProperty); 414DataGridHelper.TransferProperty(this, ContentStringFormatProperty); 418DataGridHelper.TransferProperty(this, StyleProperty); 422DataGridHelper.TransferProperty(this, HeightProperty); 594object content = DataGridHelper.GetCoercedTransferPropertyValue( 619return DataGridHelper.GetCoercedTransferPropertyValue( 633return DataGridHelper.GetCoercedTransferPropertyValue( 647return DataGridHelper.GetCoercedTransferPropertyValue( 678return DataGridHelper.GetCoercedTransferPropertyValue( 785return DataGridHelper.GetCoercedTransferPropertyValue( 892Geometry frozenGeometry = DataGridHelper.GetFrozenClipForCell(header);
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (9)
73DataGridHelper.TransferProperty(this, VirtualizingPanel.IsVirtualizingProperty); 78DataGridHelper.TransferProperty(fillerColumnHeader, DataGridColumnHeader.StyleProperty); 79DataGridHelper.TransferProperty(fillerColumnHeader, DataGridColumnHeader.HeightProperty); 287if (DataGridHelper.ShouldNotifyColumnHeadersPresenter(target)) 324DataGridHelper.TransferProperty(this, VirtualizingPanel.IsVirtualizingProperty); 328if (DataGridHelper.ShouldNotifyColumnHeaders(target)) 366DataGridHelper.TransferProperty(headersPresenter, VirtualizingPanel.IsVirtualizingProperty); 379return DataGridHelper.GetCoercedTransferPropertyValue( 1037_parentDataGrid = DataGridHelper.FindParent<DataGrid>(this);
System\Windows\Controls\Primitives\DataGridDetailsPresenter.cs (12)
51return DataGridHelper.GetCoercedTransferPropertyValue( 69return DataGridHelper.GetCoercedTransferPropertyValue( 162DataGridHelper.TransferProperty(this, ContentTemplateProperty); 163DataGridHelper.TransferProperty(this, ContentTemplateSelectorProperty); 182DataGridHelper.TransferProperty(this, ContentTemplateProperty); 186DataGridHelper.TransferProperty(this, ContentTemplateSelectorProperty); 220DataGridHelper.IsGridLineVisible(dataGrid, /*isHorizontal = */ true)) 223Size desiredSize = base.MeasureOverride(DataGridHelper.SubtractFromSize(availableSize, thickness, /*height = */ true)); 254DataGridHelper.IsGridLineVisible(dataGrid, /*isHorizontal = */ true)) 257Size returnSize = base.ArrangeOverride(DataGridHelper.SubtractFromSize(finalSize, thickness, /*height = */ true)); 288DataGridHelper.IsGridLineVisible(dataGrid, /*isHorizontal = */ true)) 326get { return DataGridHelper.FindParent<DataGridRow>(this); }
System\Windows\Controls\Primitives\DataGridRowHeader.cs (16)
231DataGridHelper.TransferProperty(this, ContentProperty); 232DataGridHelper.TransferProperty(this, StyleProperty); 233DataGridHelper.TransferProperty(this, ContentTemplateProperty); 234DataGridHelper.TransferProperty(this, ContentTemplateSelectorProperty); 235DataGridHelper.TransferProperty(this, WidthProperty); 261DataGridHelper.TransferProperty(this, ContentProperty); 265DataGridHelper.TransferProperty(this, StyleProperty); 269DataGridHelper.TransferProperty(this, ContentTemplateProperty); 273DataGridHelper.TransferProperty(this, ContentTemplateSelectorProperty); 277DataGridHelper.TransferProperty(this, WidthProperty); 321return DataGridHelper.GetCoercedTransferPropertyValue( 337return DataGridHelper.GetCoercedTransferPropertyValue( 355return DataGridHelper.GetCoercedTransferPropertyValue( 371return DataGridHelper.GetCoercedTransferPropertyValue( 387return DataGridHelper.GetCoercedTransferPropertyValue( 766return DataGridHelper.FindParent<DataGridRow>(this);
System\Windows\Controls\Primitives\SelectiveScrollingGrid.cs (1)
56ScrollViewer scrollViewer = DataGridHelper.FindVisualParent<ScrollViewer>(element);