diff --git a/SlnMesnac.WPF/Page/Version/VersionInfoWindow.xaml b/SlnMesnac.WPF/Page/Version/VersionInfoWindow.xaml new file mode 100644 index 0000000..c1c6535 --- /dev/null +++ b/SlnMesnac.WPF/Page/Version/VersionInfoWindow.xaml @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SlnMesnac.WPF/Page/Version/VersionInfoWindow.xaml.cs b/SlnMesnac.WPF/Page/Version/VersionInfoWindow.xaml.cs new file mode 100644 index 0000000..ab59010 --- /dev/null +++ b/SlnMesnac.WPF/Page/Version/VersionInfoWindow.xaml.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Shapes; + +namespace SlnMesnac.WPF.Page.Version +{ + /// + /// VersionInfoWindow.xaml 的交互逻辑 + /// + public partial class VersionInfoWindow : Window + { + public VersionInfoWindow() + { + InitializeComponent(); + } + } +} diff --git a/SlnMesnac.WPF/Page/Version/logo.png b/SlnMesnac.WPF/Page/Version/logo.png new file mode 100644 index 0000000..e83bb96 Binary files /dev/null and b/SlnMesnac.WPF/Page/Version/logo.png differ diff --git a/SlnMesnac.WPF/SlnMesnac.WPF.csproj b/SlnMesnac.WPF/SlnMesnac.WPF.csproj index 7634670..0b263dd 100644 --- a/SlnMesnac.WPF/SlnMesnac.WPF.csproj +++ b/SlnMesnac.WPF/SlnMesnac.WPF.csproj @@ -9,8 +9,10 @@ + + @@ -45,8 +47,10 @@ + + diff --git a/SlnMesnac.WPF/Templates/image/logo.png b/SlnMesnac.WPF/Templates/image/logo.png new file mode 100644 index 0000000..e83bb96 Binary files /dev/null and b/SlnMesnac.WPF/Templates/image/logo.png differ diff --git a/SlnMesnac.WPF/ViewModel/MainWindowViewModel.cs b/SlnMesnac.WPF/ViewModel/MainWindowViewModel.cs index 2439555..6d4bff3 100644 --- a/SlnMesnac.WPF/ViewModel/MainWindowViewModel.cs +++ b/SlnMesnac.WPF/ViewModel/MainWindowViewModel.cs @@ -5,6 +5,7 @@ using Microsoft.Extensions.Logging; using SlnMesnac.Business; using SlnMesnac.WPF.Page; using SlnMesnac.WPF.Page.History; +using SlnMesnac.WPF.Page.Version; using System; using System.Windows; @@ -168,6 +169,12 @@ namespace SlnMesnac.WPF.ViewModel case "History": UserContent = historyControl; break; //historyControl + case "Version": + VersionInfoWindow versionInfoWindow = new VersionInfoWindow(); + versionInfoWindow.Topmost = true; // 设置为最顶层 + versionInfoWindow.WindowStartupLocation = WindowStartupLocation.CenterScreen; // 设置为居中 + versionInfoWindow.ShowDialog(); + break; default: break; } }