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