From caea418ab5df63b3ba963039563ef0b42aa5c35a Mon Sep 17 00:00:00 2001 From: Maksym Katsydan Date: Sat, 12 Nov 2022 17:03:35 -0500 Subject: [PATCH] Add DataGrid to the About page --- src/App.axaml | 3 + src/App.axaml.cs | 8 +-- src/AvaloniaCoreRTDemo.csproj | 1 + src/Windows/AboutWindow.axaml | 73 +++++------------------- src/Windows/MainWindow.axaml | 3 + src/Windows/ViewModels/AboutViewModel.cs | 34 ++++++----- 6 files changed, 45 insertions(+), 77 deletions(-) diff --git a/src/App.axaml b/src/App.axaml index e5fccaf..42192bc 100644 --- a/src/App.axaml +++ b/src/App.axaml @@ -1,6 +1,9 @@ + + + diff --git a/src/App.axaml.cs b/src/App.axaml.cs index f760a54..4897feb 100644 --- a/src/App.axaml.cs +++ b/src/App.axaml.cs @@ -52,19 +52,19 @@ namespace AvaloniaCoreRTDemo { case ApplicationTheme.SimpleLight: this._simpleTheme.Mode = SimpleThemeMode.Light; - this.Styles[0] = this._simpleTheme; + this.Styles[1] = this._simpleTheme; break; case ApplicationTheme.SimpleDark: this._simpleTheme.Mode = SimpleThemeMode.Dark; - this.Styles[0] = this._simpleTheme; + this.Styles[1] = this._simpleTheme; break; case ApplicationTheme.FluentLight: this._fluentTheme.Mode = FluentThemeMode.Light; - this.Styles[0] = this._fluentTheme; + this.Styles[1] = this._fluentTheme; break; case ApplicationTheme.FluentDark: this._fluentTheme.Mode = FluentThemeMode.Dark; - this.Styles[0] = this._fluentTheme; + this.Styles[1] = this._fluentTheme; break; } } diff --git a/src/AvaloniaCoreRTDemo.csproj b/src/AvaloniaCoreRTDemo.csproj index 57a8a7f..6c272f8 100644 --- a/src/AvaloniaCoreRTDemo.csproj +++ b/src/AvaloniaCoreRTDemo.csproj @@ -42,6 +42,7 @@ + diff --git a/src/Windows/AboutWindow.axaml b/src/Windows/AboutWindow.axaml index bcd4700..58e9b80 100644 --- a/src/Windows/AboutWindow.axaml +++ b/src/Windows/AboutWindow.axaml @@ -1,67 +1,20 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + diff --git a/src/Windows/MainWindow.axaml b/src/Windows/MainWindow.axaml index e82bf20..0c5a4ca 100644 --- a/src/Windows/MainWindow.axaml +++ b/src/Windows/MainWindow.axaml @@ -7,6 +7,9 @@ x:DataType="viewModels1:MainViewModelBase"> + +