Esempio n. 1
0
        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);
            }
        }
 public static void SetColumnId(DataGridColumn element, string value)
 {
     element.SetValue(ColumnIdProperty, value);
 }
 public static void SetComparer(DataGridColumn element, IComparer value)
 {
     element.SetValue(ComparerProperty, value);
 }
 public static void SetFooterColumnId(DataGridColumn elementNameColumn, string value)
 {
     elementNameColumn.SetValue(FooterColumnIdProperty, value);
 }
 public static void SetCustomSorter(DataGridColumn gridColumn, ICustomSorter value)
 {
     gridColumn.SetValue(CustomSorterProperty, value);
 }
 public static void SetCanUserHideColumn(DataGridColumn dataGridColumn, bool value)
 {
     dataGridColumn.SetValue(CanUserHideColumnProperty, value);
 }
Esempio n. 7
0
 public static void SetWidthWeight(DataGridColumn column, int value)
 {
     column.SetValue(WidthWeightProperty, value);
 }
 public static void SetIsFilterEnable(DataGridColumn column, bool value)
 {
     column.SetValue(IsFilterEnableProperty, value);
 }
 public static void SetFormatForExport(DataGridColumn element, string value)
 {
     element.SetValue(FormatForExportProperty, value);
 }
Esempio n. 10
0
 public static void SetIsExported(DataGridColumn element, Boolean value)
 {
     element.SetValue(IsExportedProperty, value);
 }