DataGridHelper Class

Namespace
MahApps.Metro.Controls
Base Types
  • object
graph BT Type-->Base0["object"] Type["DataGridHelper"] class Type type-node

Syntax

public static class DataGridHelper

Fields

Name Constant Value Summary
AutoGeneratedCheckBoxColumnEditingStyleProperty
The DependencyProperty for the DataGrid' AutoGeneratedCheckBoxColumnEditingStyle property. If a style is set, the DataGridCheckBoxColumn of the DataGrid will use this style for cells in edit mode.
static
AutoGeneratedCheckBoxColumnStyleProperty
The DependencyProperty for the DataGrid' AutoGeneratedCheckBoxColumnStyle property. If a style is set, the DataGridCheckBoxColumn of the DataGrid will use this style for normal cells.
static
AutoGeneratedComboBoxColumnEditingStyleProperty
The DependencyProperty for the DataGrid' AutoGeneratedComboBoxColumnEditingStyle property. If a style is set, the DataGridComboBoxColumn of the DataGrid will use this style for cells in edit mode.
static
AutoGeneratedComboBoxColumnStyleProperty
The DependencyProperty for the DataGrid' AutoGeneratedComboBoxColumnStyle property. If a style is set, the DataGridComboBoxColumn columns of the DataGrid will use this style for normal cells.
static
AutoGeneratedHyperlinkColumnEditingStyleProperty
The DependencyProperty for the DataGrid' AutoGeneratedHyperlinkColumnEditingStyle property. If a style is set, the DataGridHyperlinkColumn of the DataGrid will use this style for cells in edit mode.
static
AutoGeneratedHyperlinkColumnStyleProperty
The DependencyProperty for the DataGrid' AutoGeneratedHyperlinkColumnStyle property. If a style is set, the DataGridHyperlinkColumn columns of the DataGrid will use this style for normal cells.
static
AutoGeneratedNumericUpDownColumnEditingStyleProperty
The DependencyProperty for the DataGrid' AutoGeneratedNumericUpDownColumnEditingStyle property. If a style is set, the DataGridNumericUpDownColumn of the DataGrid will use this style for cells in edit mode.
static
AutoGeneratedNumericUpDownColumnStyleProperty
The DependencyProperty for the DataGrid' AutoGeneratedNumericUpDownColumnStyle property. If a style is set, the DataGridNumericUpDownColumn columns of the DataGrid will use this style for normal cells.
static
AutoGeneratedTextColumnEditingStyleProperty
The DependencyProperty for the DataGrid' AutoGeneratedTextColumnEditingStyle property. If a style is set, the DataGridTextColumn of the DataGrid will use this style for cells in edit mode.
static
AutoGeneratedTextColumnStyleProperty
The DependencyProperty for the DataGrid' AutoGeneratedTextColumnStyle property. If a style is set, the DataGridTextColumn columns of the DataGrid will use this style for normal cells.
static
CellPaddingProperty
static
ColumnHeaderPaddingProperty
static
ColumnStylesHelperProperty
The DependencyProperty for the DataGrid' ColumnStylesHelper property. If the helper is set, the columns of the DataGrid will use the styles for the columns from the DataGridHelper' attached properties.
static
EnableCellEditAssistProperty
static
SelectionUnitProperty
static

Methods

Name Value Summary
GetAutoGeneratedCheckBoxColumnEditingStyle(UIElement) Style
Helper for getting AutoGeneratedCheckBoxColumnEditingStyleProperty from element. If a style is set, the DataGridCheckBoxColumn of the DataGrid will use this style for cells in edit mode.
static
GetAutoGeneratedCheckBoxColumnStyle(UIElement) Style
Helper for getting AutoGeneratedCheckBoxColumnStyleProperty from element. If a style is set, the DataGridCheckBoxColumn of the DataGrid will use this style for normal cells.
static
GetAutoGeneratedComboBoxColumnEditingStyle(UIElement) Style
Helper for getting AutoGeneratedComboBoxColumnEditingStyleProperty from element. If a style is set, the DataGridComboBoxColumn of the DataGrid will use this style for cells in edit mode.
static
GetAutoGeneratedComboBoxColumnStyle(UIElement) Style
Helper for getting AutoGeneratedComboBoxColumnStyleProperty from element. If a style is set, the DataGridComboBoxColumn columns of the DataGrid will use this style for normal cells.
static
GetAutoGeneratedHyperlinkColumnEditingStyle(UIElement) Style
Helper for getting AutoGeneratedHyperlinkColumnEditingStyleProperty from element. If a style is set, the DataGridHyperlinkColumn of the DataGrid will use this style for cells in edit mode.
static
GetAutoGeneratedHyperlinkColumnStyle(UIElement) Style
Helper for getting AutoGeneratedHyperlinkColumnStyleProperty from element. If a style is set, the DataGridHyperlinkColumn columns of the DataGrid will use this style for normal cells.
static
GetAutoGeneratedNumericUpDownColumnEditingStyle(UIElement) Style
Helper for getting AutoGeneratedNumericUpDownColumnEditingStyleProperty from element. If a style is set, the DataGridNumericUpDownColumn of the DataGrid will use this style for cells in edit mode.
static
GetAutoGeneratedNumericUpDownColumnStyle(UIElement) Style
Helper for getting AutoGeneratedNumericUpDownColumnStyleProperty from element. If a style is set, the DataGridNumericUpDownColumn columns of the DataGrid will use this style for normal cells.
static
GetAutoGeneratedTextColumnEditingStyle(UIElement) Style
Helper for getting AutoGeneratedTextColumnEditingStyleProperty from element. If a style is set, the DataGridTextColumn of the DataGrid will use this style for cells in edit mode.
static
GetAutoGeneratedTextColumnStyle(UIElement) Style
Helper for getting AutoGeneratedTextColumnStyleProperty from element. If a style is set, the DataGridTextColumn columns of the DataGrid will use this style for normal cells.
static
GetCellPadding(DependencyObject) Thickness
Gets the padding inside the cell.
static
GetColumnHeaderPadding(DependencyObject) Thickness
Gets the padding inside the column.
static
GetColumnStylesHelper(UIElement) IDataGridColumnStylesHelper
Helper for getting ColumnStylesHelperProperty from element. If the helper is set, the columns of the DataGrid will use the styles for the columns from the DataGridHelper' attached properties.
static
GetEnableCellEditAssist(DependencyObject) bool
Gets a value which indicates the preview cell editing is enabled or not.
static
GetSelectionUnit(UIElement) DataGridSelectionUnit
Gets the value to define the selection behavior.
static
SetAutoGeneratedCheckBoxColumnEditingStyle(UIElement, Style) void
Helper for setting AutoGeneratedCheckBoxColumnEditingStyleProperty on element. If a style is set, the DataGridCheckBoxColumn of the DataGrid will use this style for cells in edit mode.
static
SetAutoGeneratedCheckBoxColumnStyle(UIElement, Style) void
Helper for setting AutoGeneratedCheckBoxColumnStyleProperty on element. If a style is set, the DataGridCheckBoxColumn of the DataGrid will use this style for normal cells.
static
SetAutoGeneratedComboBoxColumnEditingStyle(UIElement, Style) void
Helper for setting AutoGeneratedComboBoxColumnEditingStyleProperty on element. If a style is set, the DataGridComboBoxColumn of the DataGrid will use this style for cells in edit mode.
static
SetAutoGeneratedComboBoxColumnStyle(UIElement, Style) void
Helper for setting AutoGeneratedComboBoxColumnStyleProperty on element. If a style is set, the DataGridComboBoxColumn columns of the DataGrid will use this style for normal cells.
static
SetAutoGeneratedHyperlinkColumnEditingStyle(UIElement, Style) void
Helper for setting AutoGeneratedHyperlinkColumnEditingStyleProperty on element. If a style is set, the DataGridHyperlinkColumn of the DataGrid will use this style for cells in edit mode.
static
SetAutoGeneratedHyperlinkColumnStyle(UIElement, Style) void
Helper for setting AutoGeneratedHyperlinkColumnStyleProperty on element. If a style is set, the DataGridHyperlinkColumn columns of the DataGrid will use this style for normal cells.
static
SetAutoGeneratedNumericUpDownColumnEditingStyle(UIElement, Style) void
Helper for setting AutoGeneratedNumericUpDownColumnEditingStyleProperty on element. If a style is set, the DataGridNumericUpDownColumn of the DataGrid will use this style for cells in edit mode.
static
SetAutoGeneratedNumericUpDownColumnStyle(UIElement, Style) void
Helper for setting AutoGeneratedNumericUpDownColumnStyleProperty on element. If a style is set, the DataGridNumericUpDownColumn columns of the DataGrid will use this style for normal cells.
static
SetAutoGeneratedTextColumnEditingStyle(UIElement, Style) void
Helper for setting AutoGeneratedTextColumnEditingStyleProperty on element. If a style is set, the DataGridTextColumn of the DataGrid will use this style for cells in edit mode.
static
SetAutoGeneratedTextColumnStyle(UIElement, Style) void
Helper for setting AutoGeneratedTextColumnStyleProperty on element. If a style is set, the DataGridTextColumn columns of the DataGrid will use this style for normal cells.
static
SetCellPadding(DependencyObject, Thickness) void
Sets the padding inside the cell.
static
SetColumnHeaderPadding(DependencyObject, Thickness) void
Sets the padding inside the column.
static
SetColumnStylesHelper(UIElement, IDataGridColumnStylesHelper) void
Helper for setting ColumnStylesHelperProperty from element. If the helper is set, the columns of the DataGrid will use the styles for the columns from the DataGridHelper' attached properties.
static
SetEnableCellEditAssist(DependencyObject, bool) void
Sets a value which indicates the preview cell editing is enabled or not.
static
SetSelectionUnit(UIElement, DataGridSelectionUnit) void
Sets the value to define the selection behavior.
static