We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f347b65 commit f797d8aCopy full SHA for f797d8a
1 file changed
Markdown.Avalonia.Tight/MarkdownScrollViewer.cs
@@ -21,6 +21,7 @@
21
using System.Linq;
22
using System.Net.Http;
23
using System.Text.RegularExpressions;
24
+using Avalonia.LogicalTree;
25
using MdStyle = Markdown.Avalonia.MarkdownStyle;
26
27
namespace Markdown.Avalonia
@@ -148,6 +149,13 @@ public MarkdownScrollViewer()
148
149
_viewer.Content = _wrapper;
150
}
151
152
+ protected override void OnAttachedToVisualTree(VisualTreeAttachmentEventArgs e)
153
+ {
154
+ base.OnAttachedToVisualTree(e);
155
+
156
+ UpdateMarkdown();
157
+ }
158
159
#region text selection
160
161
private bool _isLeftButtonPressed;
0 commit comments