diff --git a/src/Columns/TableViewCheckBoxColumn.cs b/src/Columns/TableViewCheckBoxColumn.cs index 24017c30..38475ba5 100644 --- a/src/Columns/TableViewCheckBoxColumn.cs +++ b/src/Columns/TableViewCheckBoxColumn.cs @@ -9,7 +9,10 @@ namespace WinUI.TableView; /// Represents a column in a TableView that displays a CheckBox. /// [StyleTypedProperty(Property = nameof(ElementStyle), StyleTargetType = typeof(CheckBox))] -public class TableViewCheckBoxColumn : TableViewBoundColumn +#if WINDOWS +[WinRT.GeneratedBindableCustomProperty] +#endif +public partial class TableViewCheckBoxColumn : TableViewBoundColumn { /// /// Initializes a new instance of the TableViewCheckBoxColumn class. diff --git a/src/Columns/TableViewComboBoxColumn.cs b/src/Columns/TableViewComboBoxColumn.cs index 6b13e3a6..b88ddd48 100644 --- a/src/Columns/TableViewComboBoxColumn.cs +++ b/src/Columns/TableViewComboBoxColumn.cs @@ -10,7 +10,10 @@ namespace WinUI.TableView; /// [StyleTypedProperty(Property = nameof(ElementStyle), StyleTargetType = typeof(TextBlock))] [StyleTypedProperty(Property = nameof(EditingElementStyle), StyleTargetType = typeof(ComboBox))] -public class TableViewComboBoxColumn : TableViewBoundColumn +#if WINDOWS +[WinRT.GeneratedBindableCustomProperty] +#endif +public partial class TableViewComboBoxColumn : TableViewBoundColumn { private Binding? _textBinding; private Binding? _selectedValueBinding; diff --git a/src/Columns/TableViewDateColumn.cs b/src/Columns/TableViewDateColumn.cs index 9ce3c84d..518defc9 100644 --- a/src/Columns/TableViewDateColumn.cs +++ b/src/Columns/TableViewDateColumn.cs @@ -14,6 +14,9 @@ namespace WinUI.TableView; /// [StyleTypedProperty(Property = nameof(ElementStyle), StyleTargetType = typeof(TextBlock))] [StyleTypedProperty(Property = nameof(EditingElementStyle), StyleTargetType = typeof(TableViewDatePicker))] +#if WINDOWS +[WinRT.GeneratedBindableCustomProperty] +#endif public partial class TableViewDateColumn : TableViewBoundColumn { /// diff --git a/src/Columns/TableViewNumberColumn.cs b/src/Columns/TableViewNumberColumn.cs index e46c7c95..1d8633b2 100644 --- a/src/Columns/TableViewNumberColumn.cs +++ b/src/Columns/TableViewNumberColumn.cs @@ -8,7 +8,10 @@ namespace WinUI.TableView; /// [StyleTypedProperty(Property = nameof(ElementStyle), StyleTargetType = typeof(TextBlock))] [StyleTypedProperty(Property = nameof(EditingElementStyle), StyleTargetType = typeof(NumberBox))] -public class TableViewNumberColumn : TableViewBoundColumn +#if WINDOWS +[WinRT.GeneratedBindableCustomProperty] +#endif +public partial class TableViewNumberColumn : TableViewBoundColumn { /// /// Generates a TextBlock element for the cell. diff --git a/src/Columns/TableViewTemplateColumn.cs b/src/Columns/TableViewTemplateColumn.cs index c22792c5..c8c3bd53 100644 --- a/src/Columns/TableViewTemplateColumn.cs +++ b/src/Columns/TableViewTemplateColumn.cs @@ -6,7 +6,10 @@ namespace WinUI.TableView; /// /// Represents a column in a TableView that uses a DataTemplate for its content. /// -public class TableViewTemplateColumn : TableViewColumn +#if WINDOWS +[WinRT.GeneratedBindableCustomProperty] +#endif +public partial class TableViewTemplateColumn : TableViewColumn { /// /// Initializes a new instance of the TableViewTemplateColumn class. diff --git a/src/Columns/TableViewTextColumn.cs b/src/Columns/TableViewTextColumn.cs index 5f02e168..35532dfe 100644 --- a/src/Columns/TableViewTextColumn.cs +++ b/src/Columns/TableViewTextColumn.cs @@ -8,7 +8,10 @@ namespace WinUI.TableView; /// [StyleTypedProperty(Property = nameof(ElementStyle), StyleTargetType = typeof(TextBlock))] [StyleTypedProperty(Property = nameof(EditingElementStyle), StyleTargetType = typeof(TextBox))] -public class TableViewTextColumn : TableViewBoundColumn +#if WINDOWS +[WinRT.GeneratedBindableCustomProperty] +#endif +public partial class TableViewTextColumn : TableViewBoundColumn { /// /// Generates a TextBlock element for the cell. diff --git a/src/Columns/TableViewTimeColumn.cs b/src/Columns/TableViewTimeColumn.cs index 487691db..b4137069 100644 --- a/src/Columns/TableViewTimeColumn.cs +++ b/src/Columns/TableViewTimeColumn.cs @@ -14,6 +14,9 @@ namespace WinUI.TableView; /// [StyleTypedProperty(Property = nameof(ElementStyle), StyleTargetType = typeof(TextBlock))] [StyleTypedProperty(Property = nameof(EditingElementStyle), StyleTargetType = typeof(TableViewTimePicker))] +#if WINDOWS +[WinRT.GeneratedBindableCustomProperty] +#endif public partial class TableViewTimeColumn : TableViewBoundColumn { /// diff --git a/src/Columns/TableViewToggleSwitchColumn.cs b/src/Columns/TableViewToggleSwitchColumn.cs index 4e48f7ab..5bacd944 100644 --- a/src/Columns/TableViewToggleSwitchColumn.cs +++ b/src/Columns/TableViewToggleSwitchColumn.cs @@ -8,7 +8,10 @@ namespace WinUI.TableView; /// Represents a column in a TableView that displays a ToggleSwitch. /// [StyleTypedProperty(Property = nameof(ElementStyle), StyleTargetType = typeof(ToggleSwitch))] -public class TableViewToggleSwitchColumn : TableViewBoundColumn +#if WINDOWS +[WinRT.GeneratedBindableCustomProperty] +#endif +public partial class TableViewToggleSwitchColumn : TableViewBoundColumn { /// /// Initializes a new instance of the TableViewToggleSwitchColumn class.