Add matching text to search results
This commit is contained in:
parent
ae6655911a
commit
79ee17e7ce
8 changed files with 203 additions and 3 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue