using System; using Gtk; namespace EstusShots.Gtk.Controls { public class DataColumn : TreeViewColumn { public DataColumn() { Resizable = true; Reorderable = true; } public DataColumn(string propertyName) { PropertyName = propertyName; Title = propertyName; } /// /// The name of the property in the data source, that should be show nin the view /// public string PropertyName { get; } /// /// Applies the given transformation on each item in the column. /// This changes only the display of the value. /// public Func Format { get; set; } } }