From 13003bdbb6eca20e65383c8dc22c170fff6c5183 Mon Sep 17 00:00:00 2001 From: whistyun Date: Sun, 15 May 2022 00:39:07 +0900 Subject: [PATCH 1/2] Setting a value to MarkdownStyle has no effect with DataTemplate. ref #34 --- MdXaml/MarkdownScrollViewer.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/MdXaml/MarkdownScrollViewer.cs b/MdXaml/MarkdownScrollViewer.cs index 389997b..f19ae77 100644 --- a/MdXaml/MarkdownScrollViewer.cs +++ b/MdXaml/MarkdownScrollViewer.cs @@ -47,14 +47,14 @@ public class MarkdownScrollViewer : FlowDocumentScrollViewer, IUriContext nameof(MarkdownStyle), typeof(Style), typeof(MarkdownScrollViewer), - new PropertyMetadata(null, UpdateStyle)); + new PropertyMetadata(MdStyle.Standard, UpdateStyle)); public static readonly DependencyProperty MarkdownStyleNameProperty = DependencyProperty.Register( nameof(MarkdownStyleName), typeof(string), typeof(MarkdownScrollViewer), - new PropertyMetadata(null, UpdateStyleName)); + new PropertyMetadata(nameof(MdStyle.Standard), UpdateStyleName)); public static readonly DependencyProperty AssetPathRootProperty = DependencyProperty.Register( @@ -253,7 +253,6 @@ public ClickAction ClickAction public MarkdownScrollViewer() { Engine = new Markdown(); - SetCurrentValue(MarkdownStyleNameProperty, nameof(MdStyle.Standard)); } private void UpdateClickAction() From c53449f5df020a1d3318ee2e28eecae0ce7d88a3 Mon Sep 17 00:00:00 2001 From: whistyun Date: Sun, 15 May 2022 00:59:06 +0900 Subject: [PATCH 2/2] change ver --- MdXaml/MdXaml.csproj | 2 +- MdXaml/MdXamlMigfree.csproj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/MdXaml/MdXaml.csproj b/MdXaml/MdXaml.csproj index 9b834f5..ac9d306 100644 --- a/MdXaml/MdXaml.csproj +++ b/MdXaml/MdXaml.csproj @@ -4,7 +4,7 @@ netcoreapp3.0;net45;net5.0-windows true MdXaml - 1.14.0 + 1.15.0 Bevan Arps(original); whistyun Markdown XAML processor diff --git a/MdXaml/MdXamlMigfree.csproj b/MdXaml/MdXamlMigfree.csproj index 745b5ff..205c19f 100644 --- a/MdXaml/MdXamlMigfree.csproj +++ b/MdXaml/MdXamlMigfree.csproj @@ -4,7 +4,7 @@ netcoreapp3.0;net45;net5.0-windows true MdXaml_migfree - 1.14.0 + 1.15.0 Bevan Arps(original); whistyun Markdown XAML processor