You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -169,6 +169,21 @@ public class Item : INotifyPropertyChanged
169
169
170
170
Build and run your application. You should see the `TableView` populated with the rows and cells from your `ViewModel`.
171
171
172
+
## Native AOT Compatibility
173
+
174
+
TableView relies heavily on runtime bindings and dynamic value resolution, which are not fully compatible with IL trimming and Native AOT by default.
175
+
176
+
To use TableView in Native AOT applications, bound types should be decorated with the `WinRT.GeneratedBindableCustomProperty` attribute to preserve the required binding metadata.
177
+
```cs
178
+
[WinRT.GeneratedBindableCustomProperty]
179
+
publicpartialclassPerson
180
+
{
181
+
publicstringName { get; set; }
182
+
183
+
publicintAge { get; set; }
184
+
}
185
+
```
186
+
172
187
## Customization
173
188
174
189
You can customize the appearance and behavior of the `TableView` by modifying its properties, templates, and styles. For example:
0 commit comments