本文整理汇总了C#中System.Windows.Controls.DataGridColumn.SetValue方法的典型用法代码示例。如果您正苦于以下问题:C# DataGridColumn.SetValue方法的具体用法?C# DataGridColumn.SetValue怎么用?C# DataGridColumn.SetValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Controls.DataGridColumn
的用法示例。
在下文中一共展示了DataGridColumn.SetValue方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: TaskDataGridColumnSetLabelText
public static void TaskDataGridColumnSetLabelText(DataGridColumn col, string route, PropertyRoute context)
{
DependencyProperty labelText = DataGridColumn.HeaderProperty;
if (labelText != null && col.NotSet(labelText))
{
string text = context.PropertyInfo.NiceName();
UnitAttribute ua = context.PropertyInfo.GetCustomAttribute<UnitAttribute>();
if (ua != null)
text += " (" + ua.UnitName + ")";
col.SetValue(labelText, text);
}
}
示例2: SetColumnId
public static void SetColumnId(DataGridColumn element, string value)
{
element.SetValue(ColumnIdProperty, value);
}
示例3: SetComparer
public static void SetComparer(DataGridColumn element, IComparer value)
{
element.SetValue(ComparerProperty, value);
}
示例4: SetFooterColumnId
public static void SetFooterColumnId(DataGridColumn elementNameColumn, string value)
{
elementNameColumn.SetValue(FooterColumnIdProperty, value);
}
示例5: SetCustomSorter
public static void SetCustomSorter(DataGridColumn gridColumn, ICustomSorter value)
{
gridColumn.SetValue(CustomSorterProperty, value);
}
示例6: SetCanUserHideColumn
public static void SetCanUserHideColumn(DataGridColumn dataGridColumn, bool value)
{
dataGridColumn.SetValue(CanUserHideColumnProperty, value);
}
示例7: SetWidthWeight
public static void SetWidthWeight(DataGridColumn column, int value)
{
column.SetValue(WidthWeightProperty, value);
}
示例8: SetIsFilterEnable
public static void SetIsFilterEnable(DataGridColumn column, bool value)
{
column.SetValue(IsFilterEnableProperty, value);
}
示例9: SetFormatForExport
public static void SetFormatForExport(DataGridColumn element, string value)
{
element.SetValue(FormatForExportProperty, value);
}
示例10: SetIsExported
public static void SetIsExported(DataGridColumn element, Boolean value)
{
element.SetValue(IsExportedProperty, value);
}