Skip to content

Commit c579106

Browse files
authored
Merge pull request #264 from w-ahmad/chore/WinRT_bindable_attribute
chore: Added WinRT bindable property attribute
2 parents ab7c8a4 + 155d197 commit c579106

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/TableViewCell.cs

Lines changed: 3 additions & 0 deletions
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;

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)