Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions Examples/IGDataChart/Samples/Layers/UserAnnotationLayer.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,20 +93,22 @@ private async void Chart_UserAnnotationToolTipContentUpdating(object sender, Inf
}

await wv.EnsureCoreWebView2Async();
if (args.AnnotationInfo.AnnotationData != null)
{
var html = Markdown.ToHtml(args.AnnotationInfo.AnnotationData);

var html = Markdown.ToHtml(args.AnnotationInfo.AnnotationData);

var info = args.AnnotationInfo;
var bg = info.MainColor;
var info = args.AnnotationInfo;
var bg = info.MainColor;



html = Regex.Replace(html, "<a ", "<a target=\"_blank\" ");
html = Regex.Replace(html, "<a ", "<a target=\"_blank\" ");

if (!html.Equals(wv.Tag))
{
wv.Tag = html;
wv.NavigateToString(html);
if (!html.Equals(wv.Tag))
{
wv.Tag = html;
wv.NavigateToString(html);
}
}
}
}
Expand Down