Skip to content

Commit f43d4bf

Browse files
committed
added WinRT bindable property attribute
1 parent ab7c8a4 commit f43d4bf

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

src/TableViewCell.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ namespace WinUI.TableView;
2323
[TemplateVisualState(Name = VisualStates.StateCurrent, GroupName = VisualStates.GroupCurrent)]
2424
[TemplateVisualState(Name = VisualStates.StateSelected, GroupName = VisualStates.GroupSelection)]
2525
[TemplateVisualState(Name = VisualStates.StateUnselected, GroupName = VisualStates.GroupSelection)]
26+
#if WINDOWS
27+
[WinRT.GeneratedBindableCustomProperty]
28+
#endif
2629
public partial class TableViewCell : ContentControl
2730
{
2831
private TableViewColumn? _column;
@@ -445,7 +448,7 @@ internal void SetElement()
445448
element.Style = boundColumn.ElementStyle;
446449
}
447450

448-
Content = element;
451+
Content = element;
449452

450453
#if !WINDOWS
451454
DispatcherQueue.TryEnqueue(async () =>

src/TableViewRowHeader.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ namespace WinUI.TableView;
99
/// <summary>
1010
/// Represents a header for row in TableView.
1111
/// </summary>
12+
#if WINDOWS
13+
[WinRT.GeneratedBindableCustomProperty]
14+
#endif
1215
public partial class TableViewRowHeader : ContentControl
1316
{
1417
private ContentPresenter? _contentPresenter;

0 commit comments

Comments
 (0)