247 references to DataGridHelper
PresentationFramework (247)
System\Windows\Controls\DataGrid.cs (26)
602if (DataGridHelper.ShouldNotifyDataGrid(target)) 626if (DataGridHelper.ShouldNotifyRowSubtree(target)) 637if (DataGridHelper.ShouldNotifyColumnCollection(target) || DataGridHelper.ShouldNotifyColumns(target)) 642if ((DataGridHelper.ShouldNotifyColumnHeadersPresenter(target) || DataGridHelper.ShouldNotifyColumnHeaders(target)) && ColumnHeadersPresenter != null) 902if (!DataGridHelper.IsDefaultValue(d, DataGrid.RowStyleProperty)) 1014if (!DataGridHelper.IsDefaultValue(d, DataGrid.RowStyleSelectorProperty)) 1900_internalScrollContentPresenter = DataGridHelper.FindVisualParent<ScrollContentPresenter>(_internalItemsHost); 1905_internalScrollContentPresenter = DataGridHelper.FindVisualParent<ScrollContentPresenter>(row); 1917_internalScrollHost = DataGridHelper.FindVisualParent<ScrollViewer>(_internalItemsHost); 1922_internalScrollHost = DataGridHelper.FindVisualParent<ScrollViewer>(row); 2287return ((source == this) || (source == null)) ? CurrentCellContainer : DataGridHelper.FindVisualParent<DataGridCell>(source); 3747if (DataGridHelper.IsDefaultValue(this, CanUserAddRowsProperty)) 5586GroupItem currentGroupItem = DataGridHelper.FindVisualParent<GroupItem>(currentCellContainer); 5848DataGridRow focusRow = DataGridHelper.FindVisualParent<DataGridRow>(focusContainer); 6144startingRow = DataGridHelper.FindVisualParent<DataGridRow>(startingElement); 6162targetRowElement = DataGridHelper.FindVisualParent<DataGridRow>(targetElement); 6572row = DataGridHelper.FindVisualParent<DataGridRow>(element); 6593cell = DataGridHelper.FindVisualParent<DataGridCell>(element); 7047if (DataGridHelper.IsPropertyTransferEnabled(dataGrid, CanUserSortColumnsProperty) && 7048DataGridHelper.IsDefaultValue(dataGrid, CanUserSortColumnsProperty) && 7059DataGridHelper.TransferProperty(dataGrid, CanUserSortColumnsProperty); 7624DataGridHelper.TransferProperty(this, CanUserSortColumnsProperty); 8040if (!DataGridHelper.IsDefaultValue(d, DataGrid.EnableRowVirtualizationProperty)) 8475CellsPanelHorizontalOffset = DataGridHelper.GetParentCellsPanelHorizontalOffset(cell);
System\Windows\Controls\DataGridBoundColumn.cs (2)
33var bindingSortMemberPath = DataGridHelper.GetPathFromBinding(column.Binding as Binding); 71if (DataGridHelper.IsOneWay(_binding))
System\Windows\Controls\DataGridCell.cs (25)
127DataGridHelper.TransferProperty(this, StyleProperty); 128DataGridHelper.TransferProperty(this, IsReadOnlyProperty); 196DataGridHelper.TransferProperty(this, StyleProperty); 197DataGridHelper.TransferProperty(this, IsReadOnlyProperty); 243if (DataGridHelper.ShouldNotifyCells(target)) 247DataGridHelper.OnColumnWidthChanged(this, e); 251DataGridHelper.TransferProperty(this, StyleProperty); 255DataGridHelper.TransferProperty(this, IsReadOnlyProperty); 268if (DataGridHelper.ShouldRefreshCellContent(target)) 291return DataGridHelper.GetCoercedTransferPropertyValue( 432if (DataGridHelper.BindingExpressionBelongsToElement<DataGridCell>(bindingExpressionsCopy[i], this)) 534return DataGridHelper.GetCoercedTransferPropertyValue( 547DataGridCell cell = DataGridHelper.FindVisualParent<DataGridCell>(e.OriginalSource as UIElement); 560DataGridCell cell = DataGridHelper.FindVisualParent<DataGridCell>(e.OriginalSource as UIElement); 780bool horizontalLinesVisible = DataGridHelper.IsGridLineVisible(dataGridOwner, /*isHorizontal = */ true); 781bool verticalLinesVisible = DataGridHelper.IsGridLineVisible(dataGridOwner, /*isHorizontal = */ false); 788constraint = DataGridHelper.SubtractFromSize(constraint, horizontalLineThickness, /*height = */ true); 793constraint = DataGridHelper.SubtractFromSize(constraint, verticalLineThickness, /*height = */ false); 816bool horizontalLinesVisible = DataGridHelper.IsGridLineVisible(dataGridOwner, /*isHorizontal = */ true); 817bool verticalLinesVisible = DataGridHelper.IsGridLineVisible(dataGridOwner, /*isHorizontal = */ false); 823arrangeSize = DataGridHelper.SubtractFromSize(arrangeSize, horizontalLineThickness, /*height = */ true); 828arrangeSize = DataGridHelper.SubtractFromSize(arrangeSize, verticalLineThickness, /*height = */ false); 851if (DataGridHelper.IsGridLineVisible(dataGrid, /*isHorizontal = */ false)) 862if (DataGridHelper.IsGridLineVisible(dataGrid, /*isHorizontal = */ true)) 1040Geometry frozenGeometry = DataGridHelper.GetFrozenClipForCell(cell);
System\Windows\Controls\DataGridCellsPanel.cs (2)
975if (child != null && DataGridHelper.TreeHasFocusAndTabStop(child)) 2023IHierarchicalVirtualizationAndScrollInfo hvsInfo = DataGridHelper.FindParent<GroupItem>(parentRowsPresenter) as IHierarchicalVirtualizationAndScrollInfo;
System\Windows\Controls\DataGridColumn.cs (39)
53return DataGridHelper.GetCoercedTransferPropertyValue( 128return DataGridHelper.GetCoercedTransferPropertyValue( 162return (bool)DataGridHelper.GetCoercedTransferPropertyValue( 269double displayValue = DataGridHelper.CoerceToMinMax(changedWidth.DesiredValue, column.MinWidth, column.MaxWidth); 389DataGridLength width = (DataGridLength)DataGridHelper.GetCoercedTransferPropertyValue( 398newDisplayValue = (double.IsNaN(newDisplayValue) ? newDisplayValue : DataGridHelper.CoerceToMinMax(newDisplayValue, column.MinWidth, column.MaxWidth)); 417return DataGridHelper.GetCoercedTransferPropertyValue( 431double transferValue = (double)DataGridHelper.GetCoercedTransferPropertyValue( 546double displayWidth = DataGridHelper.CoerceToMinMax(pixelWidth, minWidth, maxWidth); 561double originalDesiredValue = DataGridHelper.CoerceToMinMax(width.DesiredValue, minWidth, maxWidth); 703DataGridHelper.UpdateTarget(editingElement); 713return DataGridHelper.ValidateWithoutUpdate(editingElement); 809if (DataGridHelper.ShouldNotifyColumns(target)) 817DataGridHelper.TransferProperty(this, MaxWidthProperty); 821DataGridHelper.TransferProperty(this, MinWidthProperty); 825DataGridHelper.TransferProperty(this, WidthProperty); 829DataGridHelper.TransferProperty(this, HeaderStyleProperty); 833DataGridHelper.TransferProperty(this, CellStyleProperty); 837DataGridHelper.TransferProperty(this, IsReadOnlyProperty); 841DataGridHelper.TransferProperty(this, DragIndicatorStyleProperty); 849DataGridHelper.TransferProperty(this, CanUserSortProperty); 853DataGridHelper.TransferProperty(this, CanUserResizeProperty); 857DataGridHelper.TransferProperty(this, CanUserReorderProperty); 911DataGridHelper.TransferProperty(this, MinWidthProperty); 912DataGridHelper.TransferProperty(this, MaxWidthProperty); 913DataGridHelper.TransferProperty(this, WidthProperty); 914DataGridHelper.TransferProperty(this, HeaderStyleProperty); 915DataGridHelper.TransferProperty(this, CellStyleProperty); 916DataGridHelper.TransferProperty(this, IsReadOnlyProperty); 917DataGridHelper.TransferProperty(this, DragIndicatorStyleProperty); 918DataGridHelper.TransferProperty(this, CanUserSortProperty); 919DataGridHelper.TransferProperty(this, CanUserReorderProperty); 920DataGridHelper.TransferProperty(this, CanUserResizeProperty); 1058return DataGridHelper.GetCoercedTransferPropertyValue( 1074if (!DataGridHelper.IsPropertyTransferEnabled(d, CanUserSortProperty)) 1077DataGridHelper.TransferProperty(d, CanUserSortProperty); 1311return DataGridHelper.GetCoercedTransferPropertyValue( 1337return DataGridHelper.GetCoercedTransferPropertyValue( 1470return DataGridHelper.GetCoercedTransferPropertyValue(
System\Windows\Controls\DataGridColumnCollection.cs (8)
162if (DataGridHelper.ShouldNotifyColumnCollection(target)) 205if (DataGridHelper.ShouldNotifyColumns(target)) 276if (DataGridHelper.IsDefaultValue(column, DataGridColumn.DisplayIndexProperty)) 511bool hasDefaultDisplayIndex = DataGridHelper.IsDefaultValue(currentColumn, DataGridColumn.DisplayIndexProperty); 653if (displayIndex == -1 && DataGridHelper.IsDefaultValue(column, DataGridColumn.DisplayIndexProperty)) 1186double displayValue = DataGridHelper.CoerceToMinMax(double.IsNaN(width.DesiredValue) ? minWidth : width.DesiredValue, minWidth, column.MaxWidth); 1386double newDesiredValue = DataGridHelper.CoerceToMinMax(width.DesiredValue, changedColumn.MinWidth, changedColumn.MaxWidth); 1926double columnDisplayWidth = DataGridHelper.CoerceToMinMax(width.DisplayValue + widthDelta, column.MinWidth, column.MaxWidth);
System\Windows\Controls\DataGridComboBoxColumn.cs (14)
58var bindingSortMemberPath = DataGridHelper.GetPathFromBinding(column.EffectiveBinding as Binding); 118if (DataGridHelper.IsOneWay(EffectiveBinding)) 431DataGridHelper.SyncColumnProperty(this, comboBox, ComboBox.SelectedValuePathProperty, SelectedValuePathProperty); 434DataGridHelper.SyncColumnProperty(this, comboBox, ComboBox.DisplayMemberPathProperty, DisplayMemberPathProperty); 437DataGridHelper.SyncColumnProperty(this, comboBox, ComboBox.ItemsSourceProperty, ItemsSourceProperty); 491DataGridHelper.RestoreFlowDirection(comboBox, cell); 506DataGridHelper.RestoreFlowDirection(comboBox, cell); 517DataGridHelper.SyncColumnProperty(this, comboBox, ComboBox.SelectedValuePathProperty, SelectedValuePathProperty); 518DataGridHelper.SyncColumnProperty(this, comboBox, ComboBox.DisplayMemberPathProperty, DisplayMemberPathProperty); 519DataGridHelper.SyncColumnProperty(this, comboBox, ComboBox.ItemsSourceProperty, ItemsSourceProperty); 562DataGridHelper.CacheFlowDirection(cb.EditableTextBoxSite, cb.Parent as DataGridCell); 563DataGridHelper.CacheFlowDirection(cb, cb.Parent as DataGridCell); 579DataGridHelper.CacheFlowDirection(cb.EditableTextBoxSite, cb.Parent as DataGridCell); 580DataGridHelper.CacheFlowDirection(cb, cb.Parent as DataGridCell);
System\Windows\Controls\DataGridHelper.cs (2)
612private static readonly DependencyProperty FlowDirectionCacheProperty = DependencyProperty.Register("FlowDirectionCache", typeof(FlowDirection), typeof(DataGridHelper)); 630object flowDirectionObj = cell.ReadLocalValue(DataGridHelper.FlowDirectionCacheProperty);
System\Windows\Controls\DataGridHyperlinkColumn.cs (6)
179DataGridHelper.RestoreFlowDirection(outerBlock, cell); 194DataGridHelper.RestoreFlowDirection(textBox, cell); 248DataGridHelper.CacheFlowDirection(editingElement, editingElement != null ? editingElement.Parent as DataGridCell : null); 260DataGridHelper.CacheFlowDirection(editingElement, editingElement != null ? editingElement.Parent as DataGridCell : null); 275if (DataGridHelper.HasNonEscapeCharacters(e as TextCompositionEventArgs)) 279else if (DataGridHelper.IsImeProcessed(e as KeyEventArgs))
System\Windows\Controls\DataGridRow.cs (34)
606return DataGridHelper.GetCoercedTransferPropertyValue( 617return DataGridHelper.GetCoercedTransferPropertyValue( 628return DataGridHelper.GetCoercedTransferPropertyValue( 644coercedValue = DataGridHelper.GetCoercedTransferPropertyValue( 653coercedValue = DataGridHelper.GetCoercedTransferPropertyValue( 669return DataGridHelper.GetCoercedTransferPropertyValue( 680return DataGridHelper.GetCoercedTransferPropertyValue( 691return DataGridHelper.GetCoercedTransferPropertyValue( 702object visibility = DataGridHelper.GetCoercedTransferPropertyValue( 865if (DataGridHelper.ShouldNotifyRows(target)) 870DataGridHelper.TransferProperty(this, BackgroundProperty); 874DataGridHelper.TransferProperty(this, HeaderStyleProperty); 878DataGridHelper.TransferProperty(this, HeaderTemplateProperty); 882DataGridHelper.TransferProperty(this, HeaderTemplateSelectorProperty); 886DataGridHelper.TransferProperty(this, ValidationErrorTemplateProperty); 890DataGridHelper.TransferProperty(this, DetailsTemplateProperty); 891DataGridHelper.TransferProperty(this, DetailsVisibilityProperty); 895DataGridHelper.TransferProperty(this, DetailsTemplateSelectorProperty); 896DataGridHelper.TransferProperty(this, DetailsVisibilityProperty); 900DataGridHelper.TransferProperty(this, DetailsVisibilityProperty); 923if (DataGridHelper.ShouldNotifyDetailsPresenter(target)) 928if (DataGridHelper.ShouldNotifyCellsPresenter(target) || 929DataGridHelper.ShouldNotifyCells(target) || 930DataGridHelper.ShouldRefreshCellContent(target)) 936if (DataGridHelper.ShouldNotifyRowHeaders(target) && RowHeader != null) 976DataGridHelper.TransferProperty(this, BackgroundProperty); 977DataGridHelper.TransferProperty(this, HeaderStyleProperty); 978DataGridHelper.TransferProperty(this, HeaderTemplateProperty); 979DataGridHelper.TransferProperty(this, HeaderTemplateSelectorProperty); 980DataGridHelper.TransferProperty(this, ValidationErrorTemplateProperty); 981DataGridHelper.TransferProperty(this, DetailsTemplateProperty); 982DataGridHelper.TransferProperty(this, DetailsTemplateSelectorProperty); 983DataGridHelper.TransferProperty(this, DetailsVisibilityProperty); 1300return DataGridHelper.FindVisualParent<DataGridRow>(element);
System\Windows\Controls\DataGridTextColumn.cs (16)
87DataGridHelper.RestoreFlowDirection(textBlock, cell); 104DataGridHelper.RestoreFlowDirection(textBox, cell); 111DataGridHelper.SyncColumnProperty(this, e, TextElement.FontFamilyProperty, FontFamilyProperty); 112DataGridHelper.SyncColumnProperty(this, e, TextElement.FontSizeProperty, FontSizeProperty); 113DataGridHelper.SyncColumnProperty(this, e, TextElement.FontStyleProperty, FontStyleProperty); 114DataGridHelper.SyncColumnProperty(this, e, TextElement.FontWeightProperty, FontWeightProperty); 115DataGridHelper.SyncColumnProperty(this, e, TextElement.ForegroundProperty, ForegroundProperty); 131DataGridHelper.SyncColumnProperty(this, textElement, TextElement.FontFamilyProperty, FontFamilyProperty); 134DataGridHelper.SyncColumnProperty(this, textElement, TextElement.FontSizeProperty, FontSizeProperty); 137DataGridHelper.SyncColumnProperty(this, textElement, TextElement.FontStyleProperty, FontStyleProperty); 140DataGridHelper.SyncColumnProperty(this, textElement, TextElement.FontWeightProperty, FontWeightProperty); 143DataGridHelper.SyncColumnProperty(this, textElement, TextElement.ForegroundProperty, ForegroundProperty); 218DataGridHelper.CacheFlowDirection(editingElement, editingElement != null ? editingElement.Parent as DataGridCell : null); 230DataGridHelper.CacheFlowDirection(editingElement, editingElement != null ? editingElement.Parent as DataGridCell : null); 257if (DataGridHelper.HasNonEscapeCharacters(e as TextCompositionEventArgs)) 261else if (DataGridHelper.IsImeProcessed(e as KeyEventArgs))
System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (15)
103DataGridHelper.TransferProperty(this, HeightProperty); 104DataGridHelper.TransferProperty(this, MinHeightProperty); 105DataGridHelper.TransferProperty(this, VirtualizingPanel.IsVirtualizingProperty); 195return DataGridHelper.GetCoercedTransferPropertyValue( 206return DataGridHelper.GetCoercedTransferPropertyValue( 375if (DataGridHelper.ShouldNotifyCellsPresenter(target)) 404DataGridHelper.TransferProperty(this, HeightProperty); 408DataGridHelper.TransferProperty(this, MinHeightProperty); 412DataGridHelper.TransferProperty(this, VirtualizingPanel.IsVirtualizingProperty); 416if (DataGridHelper.ShouldNotifyCells(target) || 417DataGridHelper.ShouldRefreshCellContent(target)) 474if (DataGridHelper.IsGridLineVisible(dataGrid, /*isHorizontal = */ true)) 496DataGridHelper.TransferProperty(cellsPresenter, VirtualizingPanel.IsVirtualizingProperty); 509return DataGridHelper.GetCoercedTransferPropertyValue( 613get { return DataGridHelper.FindParent<DataGridRow>(this); }
System\Windows\Controls\Primitives\DataGridColumnHeader.cs (20)
107DataGridHelper.TransferProperty(this, ContentProperty); 108DataGridHelper.TransferProperty(this, ContentTemplateProperty); 109DataGridHelper.TransferProperty(this, ContentTemplateSelectorProperty); 110DataGridHelper.TransferProperty(this, ContentStringFormatProperty); 111DataGridHelper.TransferProperty(this, StyleProperty); 112DataGridHelper.TransferProperty(this, HeightProperty); 397DataGridHelper.OnColumnWidthChanged(this, e); 401DataGridHelper.TransferProperty(this, ContentProperty); 405DataGridHelper.TransferProperty(this, ContentTemplateProperty); 409DataGridHelper.TransferProperty(this, ContentTemplateSelectorProperty); 413DataGridHelper.TransferProperty(this, ContentStringFormatProperty); 417DataGridHelper.TransferProperty(this, StyleProperty); 421DataGridHelper.TransferProperty(this, HeightProperty); 593object content = DataGridHelper.GetCoercedTransferPropertyValue( 618return DataGridHelper.GetCoercedTransferPropertyValue( 632return DataGridHelper.GetCoercedTransferPropertyValue( 646return DataGridHelper.GetCoercedTransferPropertyValue( 677return DataGridHelper.GetCoercedTransferPropertyValue( 784return DataGridHelper.GetCoercedTransferPropertyValue( 891Geometry frozenGeometry = DataGridHelper.GetFrozenClipForCell(header);
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (9)
72DataGridHelper.TransferProperty(this, VirtualizingPanel.IsVirtualizingProperty); 77DataGridHelper.TransferProperty(fillerColumnHeader, DataGridColumnHeader.StyleProperty); 78DataGridHelper.TransferProperty(fillerColumnHeader, DataGridColumnHeader.HeightProperty); 286if (DataGridHelper.ShouldNotifyColumnHeadersPresenter(target)) 323DataGridHelper.TransferProperty(this, VirtualizingPanel.IsVirtualizingProperty); 327if (DataGridHelper.ShouldNotifyColumnHeaders(target)) 365DataGridHelper.TransferProperty(headersPresenter, VirtualizingPanel.IsVirtualizingProperty); 378return DataGridHelper.GetCoercedTransferPropertyValue( 1036_parentDataGrid = DataGridHelper.FindParent<DataGrid>(this);
System\Windows\Controls\Primitives\DataGridDetailsPresenter.cs (12)
50return DataGridHelper.GetCoercedTransferPropertyValue( 68return DataGridHelper.GetCoercedTransferPropertyValue( 161DataGridHelper.TransferProperty(this, ContentTemplateProperty); 162DataGridHelper.TransferProperty(this, ContentTemplateSelectorProperty); 181DataGridHelper.TransferProperty(this, ContentTemplateProperty); 185DataGridHelper.TransferProperty(this, ContentTemplateSelectorProperty); 219DataGridHelper.IsGridLineVisible(dataGrid, /*isHorizontal = */ true)) 222Size desiredSize = base.MeasureOverride(DataGridHelper.SubtractFromSize(availableSize, thickness, /*height = */ true)); 253DataGridHelper.IsGridLineVisible(dataGrid, /*isHorizontal = */ true)) 256Size returnSize = base.ArrangeOverride(DataGridHelper.SubtractFromSize(finalSize, thickness, /*height = */ true)); 287DataGridHelper.IsGridLineVisible(dataGrid, /*isHorizontal = */ true)) 325get { return DataGridHelper.FindParent<DataGridRow>(this); }
System\Windows\Controls\Primitives\DataGridRowHeader.cs (16)
230DataGridHelper.TransferProperty(this, ContentProperty); 231DataGridHelper.TransferProperty(this, StyleProperty); 232DataGridHelper.TransferProperty(this, ContentTemplateProperty); 233DataGridHelper.TransferProperty(this, ContentTemplateSelectorProperty); 234DataGridHelper.TransferProperty(this, WidthProperty); 260DataGridHelper.TransferProperty(this, ContentProperty); 264DataGridHelper.TransferProperty(this, StyleProperty); 268DataGridHelper.TransferProperty(this, ContentTemplateProperty); 272DataGridHelper.TransferProperty(this, ContentTemplateSelectorProperty); 276DataGridHelper.TransferProperty(this, WidthProperty); 320return DataGridHelper.GetCoercedTransferPropertyValue( 336return DataGridHelper.GetCoercedTransferPropertyValue( 354return DataGridHelper.GetCoercedTransferPropertyValue( 370return DataGridHelper.GetCoercedTransferPropertyValue( 386return DataGridHelper.GetCoercedTransferPropertyValue( 765return DataGridHelper.FindParent<DataGridRow>(this);
System\Windows\Controls\Primitives\SelectiveScrollingGrid.cs (1)
55ScrollViewer scrollViewer = DataGridHelper.FindVisualParent<ScrollViewer>(element);