public HyperlinkTextBoxView()
        {
            InitializeComponent();

            textEditor.Document = new ICSharpCode.AvalonEdit.Document.TextDocument();

            textEditor.TextChanged += textEditor_TextChanged;

            FileLinkElementGenerator fileLinkElementGenerator = new FileLinkElementGenerator();

            textEditor.TextArea.TextView.ElementGenerators.Add(fileLinkElementGenerator);
            textEditor.TextArea.TextView.AddHandler(Hyperlink.RequestNavigateEvent, (RoutedEventHandler)requestNavigateEvent);

            textEditor.WordWrap = false;
            textEditor.HorizontalScrollBarVisibility = ScrollBarVisibility.Hidden;
            textEditor.VerticalScrollBarVisibility   = ScrollBarVisibility.Hidden;
        }
        public HyperlinkTextBoxView()
        {
            InitializeComponent();

            textEditor.Document = new ICSharpCode.AvalonEdit.Document.TextDocument();

            textEditor.TextChanged += textEditor_TextChanged;

            FileLinkElementGenerator fileLinkElementGenerator = new FileLinkElementGenerator();

            textEditor.TextArea.TextView.ElementGenerators.Add(fileLinkElementGenerator);
            textEditor.TextArea.TextView.AddHandler(Hyperlink.RequestNavigateEvent, (RoutedEventHandler)requestNavigateEvent);

            textEditor.WordWrap = false;           
            textEditor.HorizontalScrollBarVisibility = ScrollBarVisibility.Hidden;
            textEditor.VerticalScrollBarVisibility = ScrollBarVisibility.Hidden;
        }