Replace the DataGrid #340
-
Hi all, Can we define the columns in xaml like the Datagrid or we need to define the I'm migrating a WPF app to Avalonia and I have one project for the avalonia UI other for the WPF and a project that contains all the logic (view models, services, ...) and there is no WPF or Avalonia, so i cannot create a Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
At the moment, only TreeDataGridSource in the code-behind or viewmodel.
You can continue using
You can keep observable source in your view model, and when data context is re-created, update the source. Or create framework-specific view models, which is likely less desired. |
Beta Was this translation helpful? Give feedback.
DataGrid
is de-facto not supported control. It can get some fixed from the community, but we don't intend supporting it.At the moment, only TreeDataGridSource in the code-behind or viewmodel.
You can continue using
DataGrid
for a white, ensuring easier/faster migration from WPF. And migrate toTreeDataGrid
at some point later.You can keep observable source in your view mod…