From 01e213d741ce2afbe8430f4b64e6634d2e3f7afa Mon Sep 17 00:00:00 2001 From: Dong Bin <14807942+rabbitism@users.noreply.github.com> Date: Thu, 19 Mar 2026 13:28:13 +0800 Subject: [PATCH] Implement DataGrid V12 (#770) * feat: bring datagrid demo back. * feat: add FunctionalColorGroupControl and ShadowGroupControl with data binding * Add 10 TFM Co-authored-by: Zhang Dian <54255897+zdpcdt@users.noreply.github.com> * feat: Use new property Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * fix: fix changelog. Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * fix: fix sort member path. Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * chore: remove useless property. --------- Co-authored-by: Zhang Dian <54255897+zdpcdt@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- demo/Directory.Packages.props | 2 +- demo/Semi.Avalonia.Demo/App.axaml | 2 +- .../Pages/DataGridDemo.axaml | 179 ++++++++++ .../Pages/DataGridDemo.axaml.cs | 15 + .../Pages/HighContrastDemo.axaml | 327 ++++++++++++++++++ .../Pages/HighContrastDemo.axaml.cs | 25 ++ .../Pages/VariablesDemo.axaml | 103 ++++++ .../Pages/VariablesDemo.axaml.cs | 25 ++ .../Semi.Avalonia.Demo.csproj | 8 +- .../Themes/FunctionalColorGroupControl.axaml | 152 ++++++++ .../Themes/ShadowGroupControl.axaml | 110 ++++++ demo/Semi.Avalonia.Demo/Themes/_index.axaml | 2 + .../ViewModels/DataGridDemoViewModel.cs | 154 +++++++++ .../ViewModels/VariablesDemoViewModel.cs | 151 ++++++++ demo/Semi.Avalonia.Demo/Views/MainView.axaml | 100 ++---- src/Directory.Packages.props | 2 +- .../Semi.Avalonia.DataGrid.csproj | 6 +- 17 files changed, 1289 insertions(+), 74 deletions(-) create mode 100644 demo/Semi.Avalonia.Demo/Pages/DataGridDemo.axaml create mode 100644 demo/Semi.Avalonia.Demo/Pages/DataGridDemo.axaml.cs create mode 100644 demo/Semi.Avalonia.Demo/Pages/HighContrastDemo.axaml create mode 100644 demo/Semi.Avalonia.Demo/Pages/HighContrastDemo.axaml.cs create mode 100644 demo/Semi.Avalonia.Demo/Pages/VariablesDemo.axaml create mode 100644 demo/Semi.Avalonia.Demo/Pages/VariablesDemo.axaml.cs create mode 100644 demo/Semi.Avalonia.Demo/Themes/FunctionalColorGroupControl.axaml create mode 100644 demo/Semi.Avalonia.Demo/Themes/ShadowGroupControl.axaml create mode 100644 demo/Semi.Avalonia.Demo/ViewModels/DataGridDemoViewModel.cs create mode 100644 demo/Semi.Avalonia.Demo/ViewModels/VariablesDemoViewModel.cs diff --git a/demo/Directory.Packages.props b/demo/Directory.Packages.props index 79a3188..7703940 100644 --- a/demo/Directory.Packages.props +++ b/demo/Directory.Packages.props @@ -2,7 +2,7 @@ true 12.0.0-preview2 - 11.3.10 + 12.0.0-preview2-2 3.119.1 diff --git a/demo/Semi.Avalonia.Demo/App.axaml b/demo/Semi.Avalonia.Demo/App.axaml index 5bb5dcb..76a705d 100644 --- a/demo/Semi.Avalonia.Demo/App.axaml +++ b/demo/Semi.Avalonia.Demo/App.axaml @@ -10,7 +10,7 @@ - + diff --git a/demo/Semi.Avalonia.Demo/Pages/DataGridDemo.axaml b/demo/Semi.Avalonia.Demo/Pages/DataGridDemo.axaml new file mode 100644 index 0000000..8fb13a9 --- /dev/null +++ b/demo/Semi.Avalonia.Demo/Pages/DataGridDemo.axaml @@ -0,0 +1,179 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +