diff --git a/src/MaaWpfGui/MaaWpfGui.csproj b/src/MaaWpfGui/MaaWpfGui.csproj index 636ef46c63..07f2b4062c 100644 --- a/src/MaaWpfGui/MaaWpfGui.csproj +++ b/src/MaaWpfGui/MaaWpfGui.csproj @@ -107,15 +107,12 @@ 3.4.5 - - 1.15.0 - + + + 7.1.2 - - 0.5.0.1 - 13.0.1 diff --git a/src/MaaWpfGui/ViewModels/UI/AnnouncementViewModel.cs b/src/MaaWpfGui/ViewModels/UI/AnnouncementViewModel.cs index c115ecf40e..dc8b8b4749 100644 --- a/src/MaaWpfGui/ViewModels/UI/AnnouncementViewModel.cs +++ b/src/MaaWpfGui/ViewModels/UI/AnnouncementViewModel.cs @@ -17,8 +17,6 @@ using System.Windows.Documents; using System.Windows.Input; using MaaWpfGui.Constants; using MaaWpfGui.Helper; -using Markdig; -using Markdig.Wpf; using Stylet; namespace MaaWpfGui.ViewModels.UI @@ -58,9 +56,6 @@ namespace MaaWpfGui.ViewModels.UI } } - public FlowDocument AnnouncementInfoDoc => Markdig.Wpf.Markdown.ToFlowDocument(AnnouncementInfo, - new MarkdownPipelineBuilder().UseSupportedExtensions().Build()); - /// /// 检查更新 /// diff --git a/src/MaaWpfGui/ViewModels/UI/VersionUpdateViewModel.cs b/src/MaaWpfGui/ViewModels/UI/VersionUpdateViewModel.cs index 2f73692316..2bc4a4a312 100644 --- a/src/MaaWpfGui/ViewModels/UI/VersionUpdateViewModel.cs +++ b/src/MaaWpfGui/ViewModels/UI/VersionUpdateViewModel.cs @@ -29,8 +29,6 @@ using MaaWpfGui.Helper; using MaaWpfGui.Main; using MaaWpfGui.Models; using MaaWpfGui.States; -using Markdig; -using Markdig.Wpf; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using Semver; @@ -116,8 +114,6 @@ namespace MaaWpfGui.ViewModels.UI } } - public FlowDocument UpdateInfoDoc => Markdig.Wpf.Markdown.ToFlowDocument(UpdateInfo, - new MarkdownPipelineBuilder().UseSupportedExtensions().Build()); private string _updateUrl; diff --git a/src/MaaWpfGui/Views/UI/AnnouncementView.xaml b/src/MaaWpfGui/Views/UI/AnnouncementView.xaml index d8d3c7e710..9c1aba7adf 100644 --- a/src/MaaWpfGui/Views/UI/AnnouncementView.xaml +++ b/src/MaaWpfGui/Views/UI/AnnouncementView.xaml @@ -4,9 +4,10 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:hc="https://handyorg.github.io/handycontrol" - xmlns:markdig="clr-namespace:Markdig.Wpf;assembly=Markdig.Wpf" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" - xmlns:s="https://github.com/canton7/Stylet" + xmlns:mdxam="clr-namespace:MdXaml;assembly=MdXaml" + xmlns:mdplug="clr-namespace:MdXaml.Plugins;assembly=MdXaml.Plugins" + xmlns:mdhtml="clr-namespace:MdXaml.Html;assembly=MdXaml.Html" xmlns:ui="clr-namespace:MaaWpfGui.ViewModels.UI" Title="{DynamicResource Announcement}" Width="600" @@ -19,35 +20,25 @@ - + Markdown="{Binding AnnouncementInfo}" + Margin="10,0,10,0" + Zoom="120"> + + + + + + + + + - - - - - - - - - - - - - - + \ No newline at end of file diff --git a/src/MaaWpfGui/Views/UI/VersionUpdateView.xaml b/src/MaaWpfGui/Views/UI/VersionUpdateView.xaml index 77c9970f3c..c3a1251f3c 100644 --- a/src/MaaWpfGui/Views/UI/VersionUpdateView.xaml +++ b/src/MaaWpfGui/Views/UI/VersionUpdateView.xaml @@ -5,10 +5,8 @@ xmlns:controls="clr-namespace:MaaWpfGui.Styles.Controls" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:hc="https://handyorg.github.io/handycontrol" - xmlns:markdig="clr-namespace:Markdig.Wpf;assembly=Markdig.Wpf" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" - xmlns:s="https://github.com/canton7/Stylet" - xmlns:styles="clr-namespace:MaaWpfGui.Styles" + xmlns:mdxam="clr-namespace:MdXaml;assembly=MdXaml" xmlns:ui="clr-namespace:MaaWpfGui.ViewModels.UI" xmlns:viewModels="clr-namespace:MaaWpfGui.ViewModels" xmlns:vm="clr-namespace:MaaWpfGui" @@ -29,14 +27,14 @@ HorizontalAlignment="Center" Orientation="Horizontal"> - + Markdown="{Binding UpdateInfo}" + Margin="10,10,10,0" + Zoom="120"> + + + + - - - - - - - - - - - - - - + \ No newline at end of file