public TextRangeFindDialog(TextRangeViewModel trvm) { this.ViewModel = trvm; InitializeComponent(); this.cbAttributes.ItemsSource = GetSourceTemplate(); this.Hilighter = new TextRangeHilighter(HighlighterColor.GreenTextBrush); // green color }
/// <summary> /// Constructor /// </summary> public TextRangeControl() { this.Hilighter = new TextRangeHilighter(); InitializeComponent(); this.mniWhitespace.IsChecked = ConfigurationManager.GetDefaultInstance().AppConfig.ShowWhitespaceInTextPatternViewer; this.listAttributes.CommandBindings.Add(new CommandBinding(ApplicationCommands.Copy, CopyLVItems)); }
private void Window_Unloaded(object sender, RoutedEventArgs e) { this.Hilighter.Dispose(); this.Hilighter = null; }