Skip to content

Commit 458a8b3

Browse files
committed
Add mdxaml plugins
1 parent eee57e2 commit 458a8b3

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

Flow.Launcher/Flow.Launcher.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@
9191
</PackageReference>
9292
<PackageReference Include="InputSimulator" Version="1.0.4" />
9393
<PackageReference Include="MdXaml" Version="1.27.0" />
94+
<PackageReference Include="MdXaml.AnimatedGif" Version="1.27.0" />
95+
<PackageReference Include="MdXaml.Html" Version="1.27.0" />
96+
<PackageReference Include="MdXaml.Plugins" Version="1.27.0" />
97+
<PackageReference Include="MdXaml.Svg" Version="1.27.0" />
9498
<!-- Do not upgrade Microsoft.Extensions.DependencyInjection and Microsoft.Extensions.Hosting since we are .Net7.0 -->
9599
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="7.0.0" />
96100
<PackageReference Include="Microsoft.Extensions.Hosting" Version="7.0.1" />

Flow.Launcher/ReleaseNotesWindow.xaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,8 @@
163163
HorizontalAlignment="Stretch"
164164
VerticalAlignment="Stretch"
165165
ClickAction="SafetyDisplayWithRelativePath"
166-
Loaded="MarkdownViewer_Loaded" />
166+
Loaded="MarkdownViewer_Loaded"
167+
Plugins="{StaticResource MdXamlPlugins}" />
167168

168169
<!-- Put this Grid in the same position as MarkdownViewer -->
169170
<Grid

Flow.Launcher/Resources/CustomControlTemplate.xaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
<ResourceDictionary
22
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
33
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4+
xmlns:mdagif="clr-namespace:MdXaml.AnimatedGif;assembly=MdXaml.AnimatedGif"
5+
xmlns:mdhtml="clr-namespace:MdXaml.Html;assembly=MdXaml.Html"
6+
xmlns:mdplugins="clr-namespace:MdXaml.Plugins;assembly=MdXaml.Plugins"
7+
xmlns:mdsvg="clr-namespace:MdXaml.Svg;assembly=MdXaml.Svg"
48
xmlns:system="clr-namespace:System;assembly=mscorlib"
59
xmlns:ui="http://schemas.modernwpf.com/2019">
610

@@ -5761,6 +5765,12 @@
57615765
</Style>
57625766

57635767
<!-- Release Notes -->
5768+
<mdplugins:MdXamlPlugins x:Key="MdXamlPlugins">
5769+
<mdhtml:HtmlPluginSetup />
5770+
<mdsvg:SvgPluginSetup />
5771+
<mdagif:AnimatedGifPluginSetup />
5772+
</mdplugins:MdXamlPlugins>
5773+
57645774
<Style x:Key="DocumentStyleGithubLikeLight" TargetType="FlowDocument">
57655775
<Setter Property="FontFamily" Value="Calibri" />
57665776
<Setter Property="TextAlignment" Value="Left" />

0 commit comments

Comments
 (0)