Add matching text to search results

This commit is contained in:
jlewin 2019-06-19 16:49:27 -07:00
parent ae6655911a
commit 79ee17e7ce
8 changed files with 203 additions and 3 deletions

View file

@ -248,6 +248,11 @@ namespace MatterHackers.MatterControl
if (treeView.SelectedNode?.Tag is HelpArticle article)
{
markdownWidget.MatchingText = this.MatchingText;
// reset matching text after applying
this.MatchingText = null;
if (!string.IsNullOrWhiteSpace(article.Path))
{
markdownWidget.LoadUri(new Uri(ApplicationController.Instance.HelpArticleSource, article.Path), sourceArticle: article);
@ -367,6 +372,8 @@ namespace MatterHackers.MatterControl
public Color ChildBorderColor { get; private set; }
public string MatchingText { get; internal set; }
private void AddContent(GuiWidget column, string text, bool left, bool bold)
{
var container = new GuiWidget()