public void SetHighlight(BracketSearchResult result) { if (this.result != result) { this.result = result; textView.InvalidateLayer(this.Layer); } }
public void SetHighlight(BracketSearchResult result) { if (this.result != result) { this.result = result; this.borderPen = (Pen)textView.FindResource(Themes.ResourceKeys.BracketHighlightBorderPen); this.backgroundBrush = (SolidColorBrush)textView.FindResource(Themes.ResourceKeys.BracketHighlightBackgroundBrush); textView.InvalidateLayer(this.Layer); } }