247 references to DataGridHelper
PresentationFramework (247)
System\Windows\Controls\DataGrid.cs (26)
606if (DataGridHelper.ShouldNotifyDataGrid(target)) 633if (DataGridHelper.ShouldNotifyRowSubtree(target)) 644if (DataGridHelper.ShouldNotifyColumnCollection(target) || DataGridHelper.ShouldNotifyColumns(target)) 649if ((DataGridHelper.ShouldNotifyColumnHeadersPresenter(target) || DataGridHelper.ShouldNotifyColumnHeaders(target)) && ColumnHeadersPresenter != null) 909if (!DataGridHelper.IsDefaultValue(d, DataGrid.RowStyleProperty)) 1021if (!DataGridHelper.IsDefaultValue(d, DataGrid.RowStyleSelectorProperty)) 1911_internalScrollContentPresenter = DataGridHelper.FindVisualParent<ScrollContentPresenter>(_internalItemsHost); 1916_internalScrollContentPresenter = DataGridHelper.FindVisualParent<ScrollContentPresenter>(row); 1928_internalScrollHost = DataGridHelper.FindVisualParent<ScrollViewer>(_internalItemsHost); 1933_internalScrollHost = DataGridHelper.FindVisualParent<ScrollViewer>(row); 2299return ((source == this) || (source == null)) ? CurrentCellContainer : DataGridHelper.FindVisualParent<DataGridCell>(source); 3774if (DataGridHelper.IsDefaultValue(this, CanUserAddRowsProperty)) 5628GroupItem currentGroupItem = DataGridHelper.FindVisualParent<GroupItem>(currentCellContainer); 5890DataGridRow focusRow = DataGridHelper.FindVisualParent<DataGridRow>(focusContainer); 6189startingRow = DataGridHelper.FindVisualParent<DataGridRow>(startingElement); 6207targetRowElement = DataGridHelper.FindVisualParent<DataGridRow>(targetElement); 6617row = DataGridHelper.FindVisualParent<DataGridRow>(element); 6638cell = DataGridHelper.FindVisualParent<DataGridCell>(element); 7091if (DataGridHelper.IsPropertyTransferEnabled(dataGrid, CanUserSortColumnsProperty) && 7092DataGridHelper.IsDefaultValue(dataGrid, CanUserSortColumnsProperty) && 7103DataGridHelper.TransferProperty(dataGrid, CanUserSortColumnsProperty); 7671DataGridHelper.TransferProperty(this, CanUserSortColumnsProperty); 8087if (!DataGridHelper.IsDefaultValue(d, DataGrid.EnableRowVirtualizationProperty)) 8522CellsPanelHorizontalOffset = DataGridHelper.GetParentCellsPanelHorizontalOffset(cell);
System\Windows\Controls\DataGridBoundColumn.cs (2)
40var bindingSortMemberPath = DataGridHelper.GetPathFromBinding(column.Binding as Binding); 78if (DataGridHelper.IsOneWay(_binding))
System\Windows\Controls\DataGridCell.cs (25)
135DataGridHelper.TransferProperty(this, StyleProperty); 136DataGridHelper.TransferProperty(this, IsReadOnlyProperty); 207DataGridHelper.TransferProperty(this, StyleProperty); 208DataGridHelper.TransferProperty(this, IsReadOnlyProperty); 254if (DataGridHelper.ShouldNotifyCells(target)) 258DataGridHelper.OnColumnWidthChanged(this, e); 262DataGridHelper.TransferProperty(this, StyleProperty); 266DataGridHelper.TransferProperty(this, IsReadOnlyProperty); 279if (DataGridHelper.ShouldRefreshCellContent(target)) 302return DataGridHelper.GetCoercedTransferPropertyValue( 443if (DataGridHelper.BindingExpressionBelongsToElement<DataGridCell>(bindingExpressionsCopy[i], this)) 545return DataGridHelper.GetCoercedTransferPropertyValue( 558DataGridCell cell = DataGridHelper.FindVisualParent<DataGridCell>(e.OriginalSource as UIElement); 571DataGridCell cell = DataGridHelper.FindVisualParent<DataGridCell>(e.OriginalSource as UIElement); 800bool horizontalLinesVisible = DataGridHelper.IsGridLineVisible(dataGridOwner, /*isHorizontal = */ true); 801bool verticalLinesVisible = DataGridHelper.IsGridLineVisible(dataGridOwner, /*isHorizontal = */ false); 808constraint = DataGridHelper.SubtractFromSize(constraint, horizontalLineThickness, /*height = */ true); 813constraint = DataGridHelper.SubtractFromSize(constraint, verticalLineThickness, /*height = */ false); 836bool horizontalLinesVisible = DataGridHelper.IsGridLineVisible(dataGridOwner, /*isHorizontal = */ true); 837bool verticalLinesVisible = DataGridHelper.IsGridLineVisible(dataGridOwner, /*isHorizontal = */ false); 843arrangeSize = DataGridHelper.SubtractFromSize(arrangeSize, horizontalLineThickness, /*height = */ true); 848arrangeSize = DataGridHelper.SubtractFromSize(arrangeSize, verticalLineThickness, /*height = */ false); 871if (DataGridHelper.IsGridLineVisible(dataGrid, /*isHorizontal = */ false)) 880if (DataGridHelper.IsGridLineVisible(dataGrid, /*isHorizontal = */ true)) 1062Geometry frozenGeometry = DataGridHelper.GetFrozenClipForCell(cell);
System\Windows\Controls\DataGridCellsPanel.cs (2)
981if (child != null && DataGridHelper.TreeHasFocusAndTabStop(child)) 2033IHierarchicalVirtualizationAndScrollInfo hvsInfo = DataGridHelper.FindParent<GroupItem>(parentRowsPresenter) as IHierarchicalVirtualizationAndScrollInfo;
System\Windows\Controls\DataGridColumn.cs (39)
57return DataGridHelper.GetCoercedTransferPropertyValue( 132return DataGridHelper.GetCoercedTransferPropertyValue( 166return (bool)DataGridHelper.GetCoercedTransferPropertyValue( 273double displayValue = DataGridHelper.CoerceToMinMax(changedWidth.DesiredValue, column.MinWidth, column.MaxWidth); 393DataGridLength width = (DataGridLength)DataGridHelper.GetCoercedTransferPropertyValue( 402newDisplayValue = (double.IsNaN(newDisplayValue) ? newDisplayValue : DataGridHelper.CoerceToMinMax(newDisplayValue, column.MinWidth, column.MaxWidth)); 421return DataGridHelper.GetCoercedTransferPropertyValue( 435double transferValue = (double)DataGridHelper.GetCoercedTransferPropertyValue( 550double displayWidth = DataGridHelper.CoerceToMinMax(pixelWidth, minWidth, maxWidth); 565double originalDesiredValue = DataGridHelper.CoerceToMinMax(width.DesiredValue, minWidth, maxWidth); 707DataGridHelper.UpdateTarget(editingElement); 717return DataGridHelper.ValidateWithoutUpdate(editingElement); 813if (DataGridHelper.ShouldNotifyColumns(target)) 821DataGridHelper.TransferProperty(this, MaxWidthProperty); 825DataGridHelper.TransferProperty(this, MinWidthProperty); 829DataGridHelper.TransferProperty(this, WidthProperty); 833DataGridHelper.TransferProperty(this, HeaderStyleProperty); 837DataGridHelper.TransferProperty(this, CellStyleProperty); 841DataGridHelper.TransferProperty(this, IsReadOnlyProperty); 845DataGridHelper.TransferProperty(this, DragIndicatorStyleProperty); 853DataGridHelper.TransferProperty(this, CanUserSortProperty); 857DataGridHelper.TransferProperty(this, CanUserResizeProperty); 861DataGridHelper.TransferProperty(this, CanUserReorderProperty); 921DataGridHelper.TransferProperty(this, MinWidthProperty); 922DataGridHelper.TransferProperty(this, MaxWidthProperty); 923DataGridHelper.TransferProperty(this, WidthProperty); 924DataGridHelper.TransferProperty(this, HeaderStyleProperty); 925DataGridHelper.TransferProperty(this, CellStyleProperty); 926DataGridHelper.TransferProperty(this, IsReadOnlyProperty); 927DataGridHelper.TransferProperty(this, DragIndicatorStyleProperty); 928DataGridHelper.TransferProperty(this, CanUserSortProperty); 929DataGridHelper.TransferProperty(this, CanUserReorderProperty); 930DataGridHelper.TransferProperty(this, CanUserResizeProperty); 1071return DataGridHelper.GetCoercedTransferPropertyValue( 1087if (!DataGridHelper.IsPropertyTransferEnabled(d, CanUserSortProperty)) 1090DataGridHelper.TransferProperty(d, CanUserSortProperty); 1322return DataGridHelper.GetCoercedTransferPropertyValue( 1348return DataGridHelper.GetCoercedTransferPropertyValue( 1481return DataGridHelper.GetCoercedTransferPropertyValue(
System\Windows\Controls\DataGridColumnCollection.cs (8)
167if (DataGridHelper.ShouldNotifyColumnCollection(target)) 210if (DataGridHelper.ShouldNotifyColumns(target)) 281if (DataGridHelper.IsDefaultValue(column, DataGridColumn.DisplayIndexProperty)) 516bool hasDefaultDisplayIndex = DataGridHelper.IsDefaultValue(currentColumn, DataGridColumn.DisplayIndexProperty); 658if (displayIndex == -1 && DataGridHelper.IsDefaultValue(column, DataGridColumn.DisplayIndexProperty)) 1194double displayValue = DataGridHelper.CoerceToMinMax(double.IsNaN(width.DesiredValue) ? minWidth : width.DesiredValue, minWidth, column.MaxWidth); 1394double newDesiredValue = DataGridHelper.CoerceToMinMax(width.DesiredValue, changedColumn.MinWidth, changedColumn.MaxWidth); 1934double columnDisplayWidth = DataGridHelper.CoerceToMinMax(width.DisplayValue + widthDelta, column.MinWidth, column.MaxWidth);
System\Windows\Controls\DataGridComboBoxColumn.cs (14)
63var bindingSortMemberPath = DataGridHelper.GetPathFromBinding(column.EffectiveBinding as Binding); 123if (DataGridHelper.IsOneWay(EffectiveBinding)) 436DataGridHelper.SyncColumnProperty(this, comboBox, ComboBox.SelectedValuePathProperty, SelectedValuePathProperty); 439DataGridHelper.SyncColumnProperty(this, comboBox, ComboBox.DisplayMemberPathProperty, DisplayMemberPathProperty); 442DataGridHelper.SyncColumnProperty(this, comboBox, ComboBox.ItemsSourceProperty, ItemsSourceProperty); 496DataGridHelper.RestoreFlowDirection(comboBox, cell); 511DataGridHelper.RestoreFlowDirection(comboBox, cell); 522DataGridHelper.SyncColumnProperty(this, comboBox, ComboBox.SelectedValuePathProperty, SelectedValuePathProperty); 523DataGridHelper.SyncColumnProperty(this, comboBox, ComboBox.DisplayMemberPathProperty, DisplayMemberPathProperty); 524DataGridHelper.SyncColumnProperty(this, comboBox, ComboBox.ItemsSourceProperty, ItemsSourceProperty); 567DataGridHelper.CacheFlowDirection(cb.EditableTextBoxSite, cb.Parent as DataGridCell); 568DataGridHelper.CacheFlowDirection(cb, cb.Parent as DataGridCell); 584DataGridHelper.CacheFlowDirection(cb.EditableTextBoxSite, cb.Parent as DataGridCell); 585DataGridHelper.CacheFlowDirection(cb, cb.Parent as DataGridCell);
System\Windows\Controls\DataGridHelper.cs (2)
619private static readonly DependencyProperty FlowDirectionCacheProperty = DependencyProperty.Register("FlowDirectionCache", typeof(FlowDirection), typeof(DataGridHelper)); 637object flowDirectionObj = cell.ReadLocalValue(DataGridHelper.FlowDirectionCacheProperty);
System\Windows\Controls\DataGridHyperlinkColumn.cs (6)
186DataGridHelper.RestoreFlowDirection(outerBlock, cell); 201DataGridHelper.RestoreFlowDirection(textBox, cell); 255DataGridHelper.CacheFlowDirection(editingElement, editingElement != null ? editingElement.Parent as DataGridCell : null); 267DataGridHelper.CacheFlowDirection(editingElement, editingElement != null ? editingElement.Parent as DataGridCell : null); 282if (DataGridHelper.HasNonEscapeCharacters(e as TextCompositionEventArgs)) 286else if (DataGridHelper.IsImeProcessed(e as KeyEventArgs))
System\Windows\Controls\DataGridRow.cs (34)
617return DataGridHelper.GetCoercedTransferPropertyValue( 628return DataGridHelper.GetCoercedTransferPropertyValue( 639return DataGridHelper.GetCoercedTransferPropertyValue( 655coercedValue = DataGridHelper.GetCoercedTransferPropertyValue( 664coercedValue = DataGridHelper.GetCoercedTransferPropertyValue( 680return DataGridHelper.GetCoercedTransferPropertyValue( 691return DataGridHelper.GetCoercedTransferPropertyValue( 702return DataGridHelper.GetCoercedTransferPropertyValue( 713object visibility = DataGridHelper.GetCoercedTransferPropertyValue( 880if (DataGridHelper.ShouldNotifyRows(target)) 885DataGridHelper.TransferProperty(this, BackgroundProperty); 889DataGridHelper.TransferProperty(this, HeaderStyleProperty); 893DataGridHelper.TransferProperty(this, HeaderTemplateProperty); 897DataGridHelper.TransferProperty(this, HeaderTemplateSelectorProperty); 901DataGridHelper.TransferProperty(this, ValidationErrorTemplateProperty); 905DataGridHelper.TransferProperty(this, DetailsTemplateProperty); 906DataGridHelper.TransferProperty(this, DetailsVisibilityProperty); 910DataGridHelper.TransferProperty(this, DetailsTemplateSelectorProperty); 911DataGridHelper.TransferProperty(this, DetailsVisibilityProperty); 915DataGridHelper.TransferProperty(this, DetailsVisibilityProperty); 938if (DataGridHelper.ShouldNotifyDetailsPresenter(target)) 946if (DataGridHelper.ShouldNotifyCellsPresenter(target) || 947DataGridHelper.ShouldNotifyCells(target) || 948DataGridHelper.ShouldRefreshCellContent(target)) 957if (DataGridHelper.ShouldNotifyRowHeaders(target) && RowHeader != null) 997DataGridHelper.TransferProperty(this, BackgroundProperty); 998DataGridHelper.TransferProperty(this, HeaderStyleProperty); 999DataGridHelper.TransferProperty(this, HeaderTemplateProperty); 1000DataGridHelper.TransferProperty(this, HeaderTemplateSelectorProperty); 1001DataGridHelper.TransferProperty(this, ValidationErrorTemplateProperty); 1002DataGridHelper.TransferProperty(this, DetailsTemplateProperty); 1003DataGridHelper.TransferProperty(this, DetailsTemplateSelectorProperty); 1004DataGridHelper.TransferProperty(this, DetailsVisibilityProperty); 1336return DataGridHelper.FindVisualParent<DataGridRow>(element);
System\Windows\Controls\DataGridTextColumn.cs (16)
91DataGridHelper.RestoreFlowDirection(textBlock, cell); 108DataGridHelper.RestoreFlowDirection(textBox, cell); 115DataGridHelper.SyncColumnProperty(this, e, TextElement.FontFamilyProperty, FontFamilyProperty); 116DataGridHelper.SyncColumnProperty(this, e, TextElement.FontSizeProperty, FontSizeProperty); 117DataGridHelper.SyncColumnProperty(this, e, TextElement.FontStyleProperty, FontStyleProperty); 118DataGridHelper.SyncColumnProperty(this, e, TextElement.FontWeightProperty, FontWeightProperty); 119DataGridHelper.SyncColumnProperty(this, e, TextElement.ForegroundProperty, ForegroundProperty); 135DataGridHelper.SyncColumnProperty(this, textElement, TextElement.FontFamilyProperty, FontFamilyProperty); 138DataGridHelper.SyncColumnProperty(this, textElement, TextElement.FontSizeProperty, FontSizeProperty); 141DataGridHelper.SyncColumnProperty(this, textElement, TextElement.FontStyleProperty, FontStyleProperty); 144DataGridHelper.SyncColumnProperty(this, textElement, TextElement.FontWeightProperty, FontWeightProperty); 147DataGridHelper.SyncColumnProperty(this, textElement, TextElement.ForegroundProperty, ForegroundProperty); 222DataGridHelper.CacheFlowDirection(editingElement, editingElement != null ? editingElement.Parent as DataGridCell : null); 234DataGridHelper.CacheFlowDirection(editingElement, editingElement != null ? editingElement.Parent as DataGridCell : null); 261if (DataGridHelper.HasNonEscapeCharacters(e as TextCompositionEventArgs)) 265else if (DataGridHelper.IsImeProcessed(e as KeyEventArgs))
System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (15)
109DataGridHelper.TransferProperty(this, HeightProperty); 110DataGridHelper.TransferProperty(this, MinHeightProperty); 111DataGridHelper.TransferProperty(this, VirtualizingPanel.IsVirtualizingProperty); 201return DataGridHelper.GetCoercedTransferPropertyValue( 212return DataGridHelper.GetCoercedTransferPropertyValue( 384if (DataGridHelper.ShouldNotifyCellsPresenter(target)) 413DataGridHelper.TransferProperty(this, HeightProperty); 417DataGridHelper.TransferProperty(this, MinHeightProperty); 421DataGridHelper.TransferProperty(this, VirtualizingPanel.IsVirtualizingProperty); 425if (DataGridHelper.ShouldNotifyCells(target) || 426DataGridHelper.ShouldRefreshCellContent(target)) 483if (DataGridHelper.IsGridLineVisible(dataGrid, /*isHorizontal = */ true)) 503DataGridHelper.TransferProperty(cellsPresenter, VirtualizingPanel.IsVirtualizingProperty); 516return DataGridHelper.GetCoercedTransferPropertyValue( 620get { return DataGridHelper.FindParent<DataGridRow>(this); }
System\Windows\Controls\Primitives\DataGridColumnHeader.cs (20)
113DataGridHelper.TransferProperty(this, ContentProperty); 114DataGridHelper.TransferProperty(this, ContentTemplateProperty); 115DataGridHelper.TransferProperty(this, ContentTemplateSelectorProperty); 116DataGridHelper.TransferProperty(this, ContentStringFormatProperty); 117DataGridHelper.TransferProperty(this, StyleProperty); 118DataGridHelper.TransferProperty(this, HeightProperty); 412DataGridHelper.OnColumnWidthChanged(this, e); 416DataGridHelper.TransferProperty(this, ContentProperty); 420DataGridHelper.TransferProperty(this, ContentTemplateProperty); 424DataGridHelper.TransferProperty(this, ContentTemplateSelectorProperty); 428DataGridHelper.TransferProperty(this, ContentStringFormatProperty); 432DataGridHelper.TransferProperty(this, StyleProperty); 436DataGridHelper.TransferProperty(this, HeightProperty); 611object content = DataGridHelper.GetCoercedTransferPropertyValue( 636return DataGridHelper.GetCoercedTransferPropertyValue( 650return DataGridHelper.GetCoercedTransferPropertyValue( 664return DataGridHelper.GetCoercedTransferPropertyValue( 695return DataGridHelper.GetCoercedTransferPropertyValue( 805return DataGridHelper.GetCoercedTransferPropertyValue( 912Geometry frozenGeometry = DataGridHelper.GetFrozenClipForCell(header);
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);
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); }
System\Windows\Controls\Primitives\DataGridRowHeader.cs (16)
236DataGridHelper.TransferProperty(this, ContentProperty); 237DataGridHelper.TransferProperty(this, StyleProperty); 238DataGridHelper.TransferProperty(this, ContentTemplateProperty); 239DataGridHelper.TransferProperty(this, ContentTemplateSelectorProperty); 240DataGridHelper.TransferProperty(this, WidthProperty); 266DataGridHelper.TransferProperty(this, ContentProperty); 270DataGridHelper.TransferProperty(this, StyleProperty); 274DataGridHelper.TransferProperty(this, ContentTemplateProperty); 278DataGridHelper.TransferProperty(this, ContentTemplateSelectorProperty); 282DataGridHelper.TransferProperty(this, WidthProperty); 326return DataGridHelper.GetCoercedTransferPropertyValue( 342return DataGridHelper.GetCoercedTransferPropertyValue( 360return DataGridHelper.GetCoercedTransferPropertyValue( 376return DataGridHelper.GetCoercedTransferPropertyValue( 392return DataGridHelper.GetCoercedTransferPropertyValue( 771return DataGridHelper.FindParent<DataGridRow>(this);
System\Windows\Controls\Primitives\SelectiveScrollingGrid.cs (1)
59ScrollViewer scrollViewer = DataGridHelper.FindVisualParent<ScrollViewer>(element);