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
2
votes
0 answers

AvalonEdit in a DataTemplate of a TabControl

I'm experiencing some strange behavior of an AvalonEdit.TextEditor when placed in a TabControl item data template. I created a simple test app to illustrate as simple as I could manage: (steps to reproduce: run the app, click + twice (two tabs will…
cicatrix
  • 163
  • 1
  • 10
2
votes
4 answers

Weird scrollbar UI in hosted WPF composite control

My windows forms application hosts AvalonEdit (the composite WPF control in question) in one of its forms to cater to its text editing requirements. Here's the code I use: WPFHost = gcnew ElementHost(); TextField = gcnew…
shadeMe
  • 706
  • 1
  • 10
  • 30
2
votes
1 answer

How to fire an event when mouse hover over a specific text in AvalonEdit?

I have an AvalonEdit WPF based application. I want to define a specific behaviour when the user hovers with the mouse over a specific text in the editor, similar to tag_binding with python tkinter. I googled around, and couldn't find any way to do…
NirMH
  • 4,769
  • 3
  • 44
  • 69
2
votes
1 answer

How to enable Virtual Space in AvalonEdit?

I want to achieve "Virtual Space" functionality, similar to one in Visual Studio, in AvalonEdit. I.e. the caret could be positioned beyond the end of the text line, and if you press any key, there would be spaces automatically added to match. I am…
wizzard0
  • 1,883
  • 1
  • 15
  • 38
2
votes
0 answers

AvalonEdit XAML for COBOL

Does anyone know if an AvalonEdit XAML syntax for COBOL exists? I will resort to making one if it doesn't exist yet, but it could be wrong since I don't know the language very well.
Barry
  • 448
  • 5
  • 10
2
votes
2 answers

How to listen for folding event in AvalonEdit

I have successfully added folding to my AvalonEdit document, however, to enable a really useful experience, I need to store the folding state, so next time user open the document, the folding state is restored. My question is how do I know when the…
JobaDiniz
  • 862
  • 1
  • 14
  • 32
2
votes
2 answers

AvalonEdit as a text viewer - no caret

I want AvalonEdit to be a text viewer. I can make: textEditor.IsReadOnly = true; and the control does not allow to make any changes, but it still behave like an editor - shows a caret, and using navigation keys (arrows, page up/down) moves the…
Arek
  • 1,276
  • 1
  • 10
  • 19
2
votes
1 answer

AvalonEdit - Ruleset Spans

How to check if a word at a position is in a Span[i] of the xshd-ruleset? Thanks!
zee
  • 661
  • 1
  • 10
  • 26
2
votes
3 answers

AvalonEdit scroll to line

I am having a lot of trouble getting an AvalonEdit TextEditor to scroll to a specific line. The ScrollTo() behavior is simply to scroll until that line is in the middle of the view. I have tried many different methods found around the internet and…
zaknotzach
  • 977
  • 1
  • 9
  • 18
2
votes
1 answer

How can I programmatically change the default colors in AvalonEditor for c#

I need to know how to programmatically change the default colors in the AvalonEdit for WPF in c#. I don't want to rewrite an entire highlighting rule set. I have found the background and foreground, but not sure about the colorizing rules. Default…
Jason Stevenson
  • 4,004
  • 3
  • 29
  • 49
2
votes
1 answer

Enable code collapsing on AvalonEdit control

I try to enable code collapsing on AvalonEdit control and I can not enable it properly. public FoldingManager foldingManager; public XmlFoldingStrategy foldingStrategy; to enable code collapsing I insert this code on Window_Loaded foldingManager =…
Dany Maor
  • 2,391
  • 2
  • 18
  • 26
2
votes
1 answer

AvalonEdit : Textstate

How to determine in Avalonedit, that text is modified? I want to notify user, that text modifications are saved / unsaved into the file. I've tried such code, but IsModified property seams is set after TextChanged event occurred. So I always getting…
Alex K.
  • 21
  • 3
2
votes
2 answers

Could not load file or assembly - avalonedit via nu-get results in error

I have stumbled upon an issue where downloading AvalonEdit through nuget to my project would result in: "Could not load file or assembly 'ICSharpCode.AvalonEdit, PublicKeyToken=9cc39be672370310' or one of its dependencies. The system cannot find the…
VidasV
  • 4,335
  • 1
  • 28
  • 50
2
votes
1 answer

WPF Custom TextWrapping

I'm using AvalonEdit for an editing control and I wanted to customize the word wrapping functionality. Right now by default, word wrapping line breaks are detected for spaces. I wanted it to do wrapping based on commas as well. Example: Hello…
2
votes
1 answer

How to Style AvalonEdit ScrollBars

I'm trying to change the thumb color of the scrollbars in AvalonEdit. I've tried a number of approaches: Style the ScrollViewer - lots of examples but I can't get most of them to compile and when I do they don't work. Use FindTemplate and change…
Mike Ward
  • 3,211
  • 1
  • 29
  • 42