DataGridHelper.

GetColumnStylesHelper(UIElement) Method

Summary

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.
Namespace
MahApps.Metro.Controls
Containing Type
DataGridHelper

Syntax

[Category(AppName.MahApps)]
[AttachedPropertyBrowsableForType(typeof(DataGrid))]
public static IDataGridColumnStylesHelper GetColumnStylesHelper(UIElement element)

Attributes

Type Description
Category
AttachedPropertyBrowsableForType

Parameters

Name Type Description
element UIElement UIElement to read ColumnStylesHelperProperty from.

Return Value

Type Description
IDataGridColumnStylesHelper ColumnStylesHelper property value.