DataGridHelper.

GetAutoGeneratedTextColumnStyle(UIElement) Method

Summary

Helper for getting AutoGeneratedTextColumnStyleProperty from element. If a style is set, the DataGridTextColumn columns of the DataGrid will use this style for normal cells.
Namespace
MahApps.Metro.Controls
Containing Type
DataGridHelper

Syntax

[Category(AppName.MahApps)]
[AttachedPropertyBrowsableForType(typeof(DataGrid))]
public static Style GetAutoGeneratedTextColumnStyle(UIElement element)

Attributes

Type Description
Category
AttachedPropertyBrowsableForType

Parameters

Name Type Description
element UIElement UIElement to read AutoGeneratedTextColumnStyleProperty from.

Return Value

Type Description
Style AutoGeneratedTextColumnStyle property value.