247 references to DataGridHelper
PresentationFramework (247)
src\Framework\System\Windows\Controls\DataGrid.cs (26)
607if (DataGridHelper.ShouldNotifyDataGrid(target)) 634if (DataGridHelper.ShouldNotifyRowSubtree(target)) 645if (DataGridHelper.ShouldNotifyColumnCollection(target) || DataGridHelper.ShouldNotifyColumns(target)) 650if ((DataGridHelper.ShouldNotifyColumnHeadersPresenter(target) || DataGridHelper.ShouldNotifyColumnHeaders(target)) && ColumnHeadersPresenter != null) 910if (!DataGridHelper.IsDefaultValue(d, DataGrid.RowStyleProperty)) 1022if (!DataGridHelper.IsDefaultValue(d, DataGrid.RowStyleSelectorProperty)) 1915_internalScrollContentPresenter = DataGridHelper.FindVisualParent<ScrollContentPresenter>(_internalItemsHost); 1920_internalScrollContentPresenter = DataGridHelper.FindVisualParent<ScrollContentPresenter>(row); 1932_internalScrollHost = DataGridHelper.FindVisualParent<ScrollViewer>(_internalItemsHost); 1937_internalScrollHost = DataGridHelper.FindVisualParent<ScrollViewer>(row); 2304return ((source == this) || (source == null)) ? CurrentCellContainer : DataGridHelper.FindVisualParent<DataGridCell>(source); 3779if (DataGridHelper.IsDefaultValue(this, CanUserAddRowsProperty)) 5633GroupItem currentGroupItem = DataGridHelper.FindVisualParent<GroupItem>(currentCellContainer); 5895DataGridRow focusRow = DataGridHelper.FindVisualParent<DataGridRow>(focusContainer); 6194startingRow = DataGridHelper.FindVisualParent<DataGridRow>(startingElement); 6212targetRowElement = DataGridHelper.FindVisualParent<DataGridRow>(targetElement); 6622row = DataGridHelper.FindVisualParent<DataGridRow>(element); 6643cell = DataGridHelper.FindVisualParent<DataGridCell>(element); 7094if( DataGridHelper.IsPropertyTransferEnabled(dataGrid, CanUserSortColumnsProperty) && 7095DataGridHelper.IsDefaultValue(dataGrid, CanUserSortColumnsProperty) && 7106DataGridHelper.TransferProperty(dataGrid, CanUserSortColumnsProperty); 7674DataGridHelper.TransferProperty(this, CanUserSortColumnsProperty); 8093if (!DataGridHelper.IsDefaultValue(d, DataGrid.EnableRowVirtualizationProperty)) 8549CellsPanelHorizontalOffset = DataGridHelper.GetParentCellsPanelHorizontalOffset(cell);
src\Framework\System\Windows\Controls\DataGridBoundColumn.cs (2)
41var bindingSortMemberPath = DataGridHelper.GetPathFromBinding(column.Binding as Binding); 79if (DataGridHelper.IsOneWay(_binding))
src\Framework\System\Windows\Controls\DataGridCell.cs (25)
130DataGridHelper.TransferProperty(this, StyleProperty); 131DataGridHelper.TransferProperty(this, IsReadOnlyProperty); 202DataGridHelper.TransferProperty(this, StyleProperty); 203DataGridHelper.TransferProperty(this, IsReadOnlyProperty); 249if (DataGridHelper.ShouldNotifyCells(target)) 253DataGridHelper.OnColumnWidthChanged(this, e); 257DataGridHelper.TransferProperty(this, StyleProperty); 261DataGridHelper.TransferProperty(this, IsReadOnlyProperty); 274if (DataGridHelper.ShouldRefreshCellContent(target)) 297return DataGridHelper.GetCoercedTransferPropertyValue( 438if (DataGridHelper.BindingExpressionBelongsToElement<DataGridCell>(bindingExpressionsCopy[i], this)) 540return DataGridHelper.GetCoercedTransferPropertyValue( 553DataGridCell cell = DataGridHelper.FindVisualParent<DataGridCell>(e.OriginalSource as UIElement); 566DataGridCell cell = DataGridHelper.FindVisualParent<DataGridCell>(e.OriginalSource as UIElement); 795bool horizontalLinesVisible = DataGridHelper.IsGridLineVisible(dataGridOwner, /*isHorizontal = */ true); 796bool verticalLinesVisible = DataGridHelper.IsGridLineVisible(dataGridOwner, /*isHorizontal = */ false); 803constraint = DataGridHelper.SubtractFromSize(constraint, horizontalLineThickness, /*height = */ true); 808constraint = DataGridHelper.SubtractFromSize(constraint, verticalLineThickness, /*height = */ false); 831bool horizontalLinesVisible = DataGridHelper.IsGridLineVisible(dataGridOwner, /*isHorizontal = */ true); 832bool verticalLinesVisible = DataGridHelper.IsGridLineVisible(dataGridOwner, /*isHorizontal = */ false); 838arrangeSize = DataGridHelper.SubtractFromSize(arrangeSize, horizontalLineThickness, /*height = */ true); 843arrangeSize = DataGridHelper.SubtractFromSize(arrangeSize, verticalLineThickness, /*height = */ false); 866if (DataGridHelper.IsGridLineVisible(dataGrid, /*isHorizontal = */ false)) 875if (DataGridHelper.IsGridLineVisible(dataGrid, /*isHorizontal = */ true)) 1018Geometry frozenGeometry = DataGridHelper.GetFrozenClipForCell(cell);
src\Framework\System\Windows\Controls\DataGridCellsPanel.cs (2)
983if (child != null && DataGridHelper.TreeHasFocusAndTabStop(child)) 2035IHierarchicalVirtualizationAndScrollInfo hvsInfo = DataGridHelper.FindParent<GroupItem>(parentRowsPresenter) as IHierarchicalVirtualizationAndScrollInfo;
src\Framework\System\Windows\Controls\DataGridColumn.cs (39)
58return DataGridHelper.GetCoercedTransferPropertyValue( 133return DataGridHelper.GetCoercedTransferPropertyValue( 167return (bool)DataGridHelper.GetCoercedTransferPropertyValue( 274double displayValue = DataGridHelper.CoerceToMinMax(changedWidth.DesiredValue, column.MinWidth, column.MaxWidth); 394DataGridLength width = (DataGridLength)DataGridHelper.GetCoercedTransferPropertyValue( 403newDisplayValue = (DoubleUtil.IsNaN(newDisplayValue) ? newDisplayValue : DataGridHelper.CoerceToMinMax(newDisplayValue, column.MinWidth, column.MaxWidth)); 422return DataGridHelper.GetCoercedTransferPropertyValue( 436double transferValue = (double)DataGridHelper.GetCoercedTransferPropertyValue( 551double displayWidth = DataGridHelper.CoerceToMinMax(pixelWidth, minWidth, maxWidth); 566double originalDesiredValue = DataGridHelper.CoerceToMinMax(width.DesiredValue, minWidth, maxWidth); 714DataGridHelper.UpdateTarget(editingElement); 724return DataGridHelper.ValidateWithoutUpdate(editingElement); 820if (DataGridHelper.ShouldNotifyColumns(target)) 828DataGridHelper.TransferProperty(this, MaxWidthProperty); 832DataGridHelper.TransferProperty(this, MinWidthProperty); 836DataGridHelper.TransferProperty(this, WidthProperty); 840DataGridHelper.TransferProperty(this, HeaderStyleProperty); 844DataGridHelper.TransferProperty(this, CellStyleProperty); 848DataGridHelper.TransferProperty(this, IsReadOnlyProperty); 852DataGridHelper.TransferProperty(this, DragIndicatorStyleProperty); 860DataGridHelper.TransferProperty(this, CanUserSortProperty); 864DataGridHelper.TransferProperty(this, CanUserResizeProperty); 868DataGridHelper.TransferProperty(this, CanUserReorderProperty); 928DataGridHelper.TransferProperty(this, MinWidthProperty); 929DataGridHelper.TransferProperty(this, MaxWidthProperty); 930DataGridHelper.TransferProperty(this, WidthProperty); 931DataGridHelper.TransferProperty(this, HeaderStyleProperty); 932DataGridHelper.TransferProperty(this, CellStyleProperty); 933DataGridHelper.TransferProperty(this, IsReadOnlyProperty); 934DataGridHelper.TransferProperty(this, DragIndicatorStyleProperty); 935DataGridHelper.TransferProperty(this, CanUserSortProperty); 936DataGridHelper.TransferProperty(this, CanUserReorderProperty); 937DataGridHelper.TransferProperty(this, CanUserResizeProperty); 1078return DataGridHelper.GetCoercedTransferPropertyValue( 1094if (!DataGridHelper.IsPropertyTransferEnabled(d, CanUserSortProperty)) 1097DataGridHelper.TransferProperty(d, CanUserSortProperty); 1329return DataGridHelper.GetCoercedTransferPropertyValue( 1355return DataGridHelper.GetCoercedTransferPropertyValue( 1488return DataGridHelper.GetCoercedTransferPropertyValue(
src\Framework\System\Windows\Controls\DataGridColumnCollection.cs (8)
168if (DataGridHelper.ShouldNotifyColumnCollection(target)) 212if (DataGridHelper.ShouldNotifyColumns(target)) 283if (DataGridHelper.IsDefaultValue(column, DataGridColumn.DisplayIndexProperty)) 518bool hasDefaultDisplayIndex = DataGridHelper.IsDefaultValue(currentColumn, DataGridColumn.DisplayIndexProperty); 660if (displayIndex == -1 && DataGridHelper.IsDefaultValue(column, DataGridColumn.DisplayIndexProperty)) 1196double displayValue = DataGridHelper.CoerceToMinMax(DoubleUtil.IsNaN(width.DesiredValue) ? minWidth : width.DesiredValue, minWidth, column.MaxWidth); 1396double newDesiredValue = DataGridHelper.CoerceToMinMax(width.DesiredValue, changedColumn.MinWidth, changedColumn.MaxWidth); 1936double columnDisplayWidth = DataGridHelper.CoerceToMinMax(width.DisplayValue + widthDelta, column.MinWidth, column.MaxWidth);
src\Framework\System\Windows\Controls\DataGridComboBoxColumn.cs (14)
64var bindingSortMemberPath = DataGridHelper.GetPathFromBinding(column.EffectiveBinding as Binding); 124if (DataGridHelper.IsOneWay(EffectiveBinding)) 438DataGridHelper.SyncColumnProperty(this, comboBox, ComboBox.SelectedValuePathProperty, SelectedValuePathProperty); 441DataGridHelper.SyncColumnProperty(this, comboBox, ComboBox.DisplayMemberPathProperty, DisplayMemberPathProperty); 444DataGridHelper.SyncColumnProperty(this, comboBox, ComboBox.ItemsSourceProperty, ItemsSourceProperty); 498DataGridHelper.RestoreFlowDirection(comboBox, cell); 513DataGridHelper.RestoreFlowDirection(comboBox, cell); 524DataGridHelper.SyncColumnProperty(this, comboBox, ComboBox.SelectedValuePathProperty, SelectedValuePathProperty); 525DataGridHelper.SyncColumnProperty(this, comboBox, ComboBox.DisplayMemberPathProperty, DisplayMemberPathProperty); 526DataGridHelper.SyncColumnProperty(this, comboBox, ComboBox.ItemsSourceProperty, ItemsSourceProperty); 569DataGridHelper.CacheFlowDirection(cb.EditableTextBoxSite, cb.Parent as DataGridCell); 570DataGridHelper.CacheFlowDirection(cb, cb.Parent as DataGridCell); 586DataGridHelper.CacheFlowDirection(cb.EditableTextBoxSite, cb.Parent as DataGridCell); 587DataGridHelper.CacheFlowDirection(cb, cb.Parent as DataGridCell);
src\Framework\System\Windows\Controls\DataGridHelper.cs (2)
618private static readonly DependencyProperty FlowDirectionCacheProperty = DependencyProperty.Register("FlowDirectionCache", typeof(FlowDirection), typeof(DataGridHelper)); 636object flowDirectionObj = cell.ReadLocalValue(DataGridHelper.FlowDirectionCacheProperty);
src\Framework\System\Windows\Controls\DataGridHyperlinkColumn.cs (6)
188DataGridHelper.RestoreFlowDirection(outerBlock, cell); 203DataGridHelper.RestoreFlowDirection(textBox, cell); 257DataGridHelper.CacheFlowDirection(editingElement, editingElement != null ? editingElement.Parent as DataGridCell : null); 269DataGridHelper.CacheFlowDirection(editingElement, editingElement != null ? editingElement.Parent as DataGridCell : null); 284if (DataGridHelper.HasNonEscapeCharacters(e as TextCompositionEventArgs)) 288else if (DataGridHelper.IsImeProcessed(e as KeyEventArgs))
src\Framework\System\Windows\Controls\DataGridRow.cs (34)
618return DataGridHelper.GetCoercedTransferPropertyValue( 629return DataGridHelper.GetCoercedTransferPropertyValue( 640return DataGridHelper.GetCoercedTransferPropertyValue( 656coercedValue = DataGridHelper.GetCoercedTransferPropertyValue( 665coercedValue = DataGridHelper.GetCoercedTransferPropertyValue( 681return DataGridHelper.GetCoercedTransferPropertyValue( 692return DataGridHelper.GetCoercedTransferPropertyValue( 703return DataGridHelper.GetCoercedTransferPropertyValue( 714object visibility = DataGridHelper.GetCoercedTransferPropertyValue( 881if (DataGridHelper.ShouldNotifyRows(target)) 886DataGridHelper.TransferProperty(this, BackgroundProperty); 890DataGridHelper.TransferProperty(this, HeaderStyleProperty); 894DataGridHelper.TransferProperty(this, HeaderTemplateProperty); 898DataGridHelper.TransferProperty(this, HeaderTemplateSelectorProperty); 902DataGridHelper.TransferProperty(this, ValidationErrorTemplateProperty); 906DataGridHelper.TransferProperty(this, DetailsTemplateProperty); 907DataGridHelper.TransferProperty(this, DetailsVisibilityProperty); 911DataGridHelper.TransferProperty(this, DetailsTemplateSelectorProperty); 912DataGridHelper.TransferProperty(this, DetailsVisibilityProperty); 916DataGridHelper.TransferProperty(this, DetailsVisibilityProperty); 939if (DataGridHelper.ShouldNotifyDetailsPresenter(target)) 947if (DataGridHelper.ShouldNotifyCellsPresenter(target) || 948DataGridHelper.ShouldNotifyCells(target) || 949DataGridHelper.ShouldRefreshCellContent(target)) 958if (DataGridHelper.ShouldNotifyRowHeaders(target) && RowHeader != null) 998DataGridHelper.TransferProperty(this, BackgroundProperty); 999DataGridHelper.TransferProperty(this, HeaderStyleProperty); 1000DataGridHelper.TransferProperty(this, HeaderTemplateProperty); 1001DataGridHelper.TransferProperty(this, HeaderTemplateSelectorProperty); 1002DataGridHelper.TransferProperty(this, ValidationErrorTemplateProperty); 1003DataGridHelper.TransferProperty(this, DetailsTemplateProperty); 1004DataGridHelper.TransferProperty(this, DetailsTemplateSelectorProperty); 1005DataGridHelper.TransferProperty(this, DetailsVisibilityProperty); 1337return DataGridHelper.FindVisualParent<DataGridRow>(element);
src\Framework\System\Windows\Controls\DataGridTextColumn.cs (16)
92DataGridHelper.RestoreFlowDirection(textBlock, cell); 109DataGridHelper.RestoreFlowDirection(textBox, cell); 116DataGridHelper.SyncColumnProperty(this, e, TextElement.FontFamilyProperty, FontFamilyProperty); 117DataGridHelper.SyncColumnProperty(this, e, TextElement.FontSizeProperty, FontSizeProperty); 118DataGridHelper.SyncColumnProperty(this, e, TextElement.FontStyleProperty, FontStyleProperty); 119DataGridHelper.SyncColumnProperty(this, e, TextElement.FontWeightProperty, FontWeightProperty); 120DataGridHelper.SyncColumnProperty(this, e, TextElement.ForegroundProperty, ForegroundProperty); 136DataGridHelper.SyncColumnProperty(this, textElement, TextElement.FontFamilyProperty, FontFamilyProperty); 139DataGridHelper.SyncColumnProperty(this, textElement, TextElement.FontSizeProperty, FontSizeProperty); 142DataGridHelper.SyncColumnProperty(this, textElement, TextElement.FontStyleProperty, FontStyleProperty); 145DataGridHelper.SyncColumnProperty(this, textElement, TextElement.FontWeightProperty, FontWeightProperty); 148DataGridHelper.SyncColumnProperty(this, textElement, TextElement.ForegroundProperty, ForegroundProperty); 223DataGridHelper.CacheFlowDirection(editingElement, editingElement != null ? editingElement.Parent as DataGridCell : null); 235DataGridHelper.CacheFlowDirection(editingElement, editingElement != null ? editingElement.Parent as DataGridCell : null); 262if (DataGridHelper.HasNonEscapeCharacters(e as TextCompositionEventArgs)) 266else if (DataGridHelper.IsImeProcessed(e as KeyEventArgs))
src\Framework\System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (15)
110DataGridHelper.TransferProperty(this, HeightProperty); 111DataGridHelper.TransferProperty(this, MinHeightProperty); 112DataGridHelper.TransferProperty(this, VirtualizingPanel.IsVirtualizingProperty); 202return DataGridHelper.GetCoercedTransferPropertyValue( 213return DataGridHelper.GetCoercedTransferPropertyValue( 385if (DataGridHelper.ShouldNotifyCellsPresenter(target)) 414DataGridHelper.TransferProperty(this, HeightProperty); 418DataGridHelper.TransferProperty(this, MinHeightProperty); 422DataGridHelper.TransferProperty(this, VirtualizingPanel.IsVirtualizingProperty); 426if (DataGridHelper.ShouldNotifyCells(target) || 427DataGridHelper.ShouldRefreshCellContent(target)) 484if (DataGridHelper.IsGridLineVisible(dataGrid, /*isHorizontal = */ true)) 504DataGridHelper.TransferProperty(cellsPresenter, VirtualizingPanel.IsVirtualizingProperty); 517return DataGridHelper.GetCoercedTransferPropertyValue( 621get { return DataGridHelper.FindParent<DataGridRow>(this); }
src\Framework\System\Windows\Controls\Primitives\DataGridColumnHeader.cs (20)
114DataGridHelper.TransferProperty(this, ContentProperty); 115DataGridHelper.TransferProperty(this, ContentTemplateProperty); 116DataGridHelper.TransferProperty(this, ContentTemplateSelectorProperty); 117DataGridHelper.TransferProperty(this, ContentStringFormatProperty); 118DataGridHelper.TransferProperty(this, StyleProperty); 119DataGridHelper.TransferProperty(this, HeightProperty); 413DataGridHelper.OnColumnWidthChanged(this, e); 417DataGridHelper.TransferProperty(this, ContentProperty); 421DataGridHelper.TransferProperty(this, ContentTemplateProperty); 425DataGridHelper.TransferProperty(this, ContentTemplateSelectorProperty); 429DataGridHelper.TransferProperty(this, ContentStringFormatProperty); 433DataGridHelper.TransferProperty(this, StyleProperty); 437DataGridHelper.TransferProperty(this, HeightProperty); 612object content = DataGridHelper.GetCoercedTransferPropertyValue( 637return DataGridHelper.GetCoercedTransferPropertyValue( 651return DataGridHelper.GetCoercedTransferPropertyValue( 665return DataGridHelper.GetCoercedTransferPropertyValue( 696return DataGridHelper.GetCoercedTransferPropertyValue( 806return DataGridHelper.GetCoercedTransferPropertyValue( 913Geometry frozenGeometry = DataGridHelper.GetFrozenClipForCell(header);
src\Framework\System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (9)
78DataGridHelper.TransferProperty(this, VirtualizingPanel.IsVirtualizingProperty); 83DataGridHelper.TransferProperty(fillerColumnHeader, DataGridColumnHeader.StyleProperty); 84DataGridHelper.TransferProperty(fillerColumnHeader, DataGridColumnHeader.HeightProperty); 292if (DataGridHelper.ShouldNotifyColumnHeadersPresenter(target)) 329DataGridHelper.TransferProperty(this, VirtualizingPanel.IsVirtualizingProperty); 333if (DataGridHelper.ShouldNotifyColumnHeaders(target)) 377DataGridHelper.TransferProperty(headersPresenter, VirtualizingPanel.IsVirtualizingProperty); 390return DataGridHelper.GetCoercedTransferPropertyValue( 1047_parentDataGrid = DataGridHelper.FindParent<DataGrid>(this);
src\Framework\System\Windows\Controls\Primitives\DataGridDetailsPresenter.cs (12)
55return DataGridHelper.GetCoercedTransferPropertyValue( 73return DataGridHelper.GetCoercedTransferPropertyValue( 166DataGridHelper.TransferProperty(this, ContentTemplateProperty); 167DataGridHelper.TransferProperty(this, ContentTemplateSelectorProperty); 186DataGridHelper.TransferProperty(this, ContentTemplateProperty); 190DataGridHelper.TransferProperty(this, ContentTemplateSelectorProperty); 224DataGridHelper.IsGridLineVisible(dataGrid, /*isHorizontal = */ true)) 227Size desiredSize = base.MeasureOverride(DataGridHelper.SubtractFromSize(availableSize, thickness, /*height = */ true)); 258DataGridHelper.IsGridLineVisible(dataGrid, /*isHorizontal = */ true)) 261Size returnSize = base.ArrangeOverride(DataGridHelper.SubtractFromSize(finalSize, thickness, /*height = */ true)); 292DataGridHelper.IsGridLineVisible(dataGrid, /*isHorizontal = */ true)) 328get { return DataGridHelper.FindParent<DataGridRow>(this); }
src\Framework\System\Windows\Controls\Primitives\DataGridRowHeader.cs (16)
237DataGridHelper.TransferProperty(this, ContentProperty); 238DataGridHelper.TransferProperty(this, StyleProperty); 239DataGridHelper.TransferProperty(this, ContentTemplateProperty); 240DataGridHelper.TransferProperty(this, ContentTemplateSelectorProperty); 241DataGridHelper.TransferProperty(this, WidthProperty); 267DataGridHelper.TransferProperty(this, ContentProperty); 271DataGridHelper.TransferProperty(this, StyleProperty); 275DataGridHelper.TransferProperty(this, ContentTemplateProperty); 279DataGridHelper.TransferProperty(this, ContentTemplateSelectorProperty); 283DataGridHelper.TransferProperty(this, WidthProperty); 327return DataGridHelper.GetCoercedTransferPropertyValue( 343return DataGridHelper.GetCoercedTransferPropertyValue( 361return DataGridHelper.GetCoercedTransferPropertyValue( 377return DataGridHelper.GetCoercedTransferPropertyValue( 393return DataGridHelper.GetCoercedTransferPropertyValue( 772return DataGridHelper.FindParent<DataGridRow>(this);
src\Framework\System\Windows\Controls\Primitives\SelectiveScrollingGrid.cs (1)
60ScrollViewer scrollViewer = DataGridHelper.FindVisualParent<ScrollViewer>(element);