Questions tagged [avalonedit]

AvalonEdit is a .NET WPF-based source code editor component developed for SharpDevelop 4.0 "Mirador".

AvalonEdit supports .NET 3.5 SP1 and .NET 4.0.

Source code can be downloaded from the SharpDevelop source code repository.

As SharpDevelop 4.0 is still in development the documentation for AvalonEdit is very sparse. All available materials are compiled in an article on SharpDevelop wiki.

Resources

Using AvalonEdit (WPF Text Editor)
Making AvalonEdit MVVM compatible

190 questions
0
votes
1 answer

VisualLineElementGenerator VerticalAlignment to Center

In my application I'm using the TextEditor from Avalon. With the following code I'm creating a VisualLineElementGenerator which works just fine: internal class SoftwareDependencyElementGenerator : VisualLineElementGenerator { private static…
Tomtom
  • 9,087
  • 7
  • 52
  • 95
0
votes
1 answer

Can I detect a char position using Regex with a prefix condition?

I have a string representing an equation statement: a = b * c in a tool I am writing. The string may contains a "comment" suffix to the statement with * representing the comment. I am using AvalonEdit for the text editor object and trying to write…
NirMH
  • 4,769
  • 3
  • 44
  • 69
0
votes
0 answers

How to create event handler for AvalonEdit (ICSharpCode) Text Editor control?

I am creating event handlers for on keypress and on caret position changed. The "KeyDown" event works fine, but the code for "PositionChanged" fails with the error: No overload for 'TextEditor_PositionChanged' matches…
user2924019
  • 1,983
  • 4
  • 29
  • 49
0
votes
1 answer

Tooltip position in avalon editor

I have a problem in wpf avalon editor, the position of the tool-tip is not set. In avalon editor, I have to set tooltip near word when after word space is typed. But I do not get any solution so that tooltip shows near word when space is…
Navita
  • 1
0
votes
1 answer

How do I set equal character spacing in AvalonEdit such that visual line columns are the same as document line columns

I'm wrapping AvalonEdit into a custom control and I'm trying to display a text file using equal character spacing such that it behaves similarly to notepad. I've done quite a bit of digging but I can't seem to find which property I need to flip to…
milespossing
  • 130
  • 6
0
votes
0 answers

Avalon Edit Cut\Copy\Paste Commands from MahApps.Metro Button

I'm implementing a custom simplified editor in WPF using AvalonEdit and MahApps.Metro. I am stuck trying to get the cut/copy/paste/undo/redo commands working using MahApps.Metro icon/circle buttons instead of a toolbar. The AvalonEdit sample uses a…
SheriSteeves
  • 55
  • 1
  • 7
0
votes
1 answer

Interactions with AvalonEdit window in an AvalonDock

In my application we use AvalonDock for a docking manager, and have a variety of different windows. One of those contains an AvalonEdit editor. We recently noticed one specific interaction issue which I figured out to be caused by the…
zaknotzach
  • 977
  • 1
  • 9
  • 18
0
votes
2 answers

AvalonEdit not updating if not visible

I have implemented AvalonEdit in my application. Everything works fine except one little hitch - if I change the contents of the editor manually via the Text property while the editor is not visible (eg. it is on the other tab), the contents of the…
Matěj Zábský
  • 16,909
  • 15
  • 69
  • 114
0
votes
1 answer

Application hangs when calling external constructor -- troubleshooting steps?

This may be a long shot but I'm out of ideas. I've got a VS C# solution with three projects in it. There's a class library project and then two application projects that depend on that class library. The class library in turn depends on a few other…
mwtb
  • 261
  • 2
  • 9
0
votes
1 answer

AvalonEdit - XMLFolding -> Ignore the first line

Would it be possible to ignore the first line when trying to update the foldings? Ignore this line Tove Jani Reminder Don't forget me this…
Daniel
  • 99
  • 8
0
votes
0 answers

AvalonEdit and Abstract Margin Scrolling together Memory Leak

I have next problem with my project. I have had to add AbstractMargin to my AvalonEdit control to create some of bookmarks/breakpoints. When i put my AvalonEdit control into ScrollViewer, AbstractMargin scroll and work good. BUT! When I now open…
James Reszka
  • 13
  • 1
  • 5
0
votes
2 answers

Invoke search in Avalon Editor using Button click

I am using AvalonEditor inside a window dialog(WPF). Window dialog host TextEditor control. I have Find button explicit on Window. On click of Button, Search should work inside TextEditor. Can you please suggest how to bind Button Find to invoke…
0
votes
1 answer

How to add event handler to a C# AvalonEdit Caret PositionChanged event in xaml

I have a data template defined in xaml as: I need to add an…
Ken Yu
  • 1
  • 1
0
votes
1 answer

C# AvalonEdit Highlighting Regex till new line

I am modifying the Code from the AvalonEdit in C# to create another syntax highlighting. I want to create my own style for LOG-files the highlighted code looks like this: Time in the front blue and the text behind green(information),…
Momo
  • 456
  • 5
  • 22
0
votes
1 answer

WPF: Make AvalonEdit Unfocusable and Uneditable

How can I make AvalonEdit unfocusable and uneditable in my WPF App? I've tried this:
Masood Lapeh
  • 196
  • 3
  • 7