Skip to content

Commit

Permalink
Merge pull request #84 from w-ahmad/feature/TagProperty
Browse files Browse the repository at this point in the history
added Tag property
  • Loading branch information
w-ahmad authored Dec 13, 2024
2 parents 644b866 + 8e3e0b9 commit 0d69511
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/WinUI.TableView/TableViewColumn.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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));
}

0 comments on commit 0d69511

Please sign in to comment.