diff --git a/src/WinUI.TableView/TableViewColumn.cs b/src/WinUI.TableView/TableViewColumn.cs index aeed4b8..7b7e722 100644 --- a/src/WinUI.TableView/TableViewColumn.cs +++ b/src/WinUI.TableView/TableViewColumn.cs @@ -89,6 +89,12 @@ public Visibility Visibility set => SetValue(VisibilityProperty, value); } + public object Tag + { + get => GetValue(TagProperty); + set => SetValue(TagProperty, value); + } + internal double DesiredWidth { get => _desiredWidth; @@ -171,4 +177,5 @@ private static void OnVisibilityChanged(DependencyObject d, DependencyPropertyCh public static readonly DependencyProperty CanResizeProperty = DependencyProperty.Register(nameof(CanResize), typeof(bool), typeof(TableViewColumn), new PropertyMetadata(true)); public static readonly DependencyProperty IsReadOnlyProperty = DependencyProperty.Register(nameof(IsReadOnly), typeof(bool), typeof(TableViewColumn), new PropertyMetadata(false, OnIsReadOnlyChanged)); public static readonly DependencyProperty VisibilityProperty = DependencyProperty.Register(nameof(Visibility), typeof(Visibility), typeof(TableViewColumn), new PropertyMetadata(Visibility.Visible, OnVisibilityChanged)); + public static readonly DependencyProperty TagProperty = DependencyProperty.Register(nameof(Tag), typeof(object), typeof(TableViewColumn), new PropertyMetadata(null)); } \ No newline at end of file