AvaloniaEdit icon indicating copy to clipboard operation
AvaloniaEdit copied to clipboard

How to insert image?

Open qqJoker opened this issue 1 year ago • 1 comments

So, does AvaloniaEdit support inserting image now?

qqJoker avatar Aug 08 '24 02:08 qqJoker

AvaloniaEdit allows you to insert Avalonia controls, such as buttons or images, in the text. Try clicking Add Button in the AvaloniaEdit.Demo.

To implement this, you need to create a custom generator derived from VisualLineElementGenerator and add it to _textEditor.TextArea.TextView.ElementGenerators. For more details, see the example in MainWindow.xaml.cs.

mgarstenauer avatar Mar 29 '25 09:03 mgarstenauer