Martin Garstenauer

Results 16 comments of Martin Garstenauer

> A few years ago we discussed replacing the Microsoft.Xna. namespace with MonoGame. I didn't join the previous discussions. What would be the reasons/advantages of changing the namespace? Our own...

This seems to be a bug in Avalonia. You can reproduce this bug using a simple `TextBox`. ```xaml ``` Avalonia: ![image](https://github.com/AvaloniaUI/AvaloniaEdit/assets/8617071/d18e9e1d-d29a-4257-a1a0-019a9a913e7d) WPF: ![image](https://github.com/AvaloniaUI/AvaloniaEdit/assets/8617071/dfbf009f-eddd-426b-aa7c-4740e06a6156) I am going to file an Avalonia...

@Rekkonnect Thanks for the feedback. I was mainly worried about the margins on the other sides. Having space between the scrollbars and the window, felt like a bug. I pushed...

I increased the minimum size of the `LineNumberMargin`. This ensures that there is enough space between the line numbers and any other text editor margins. Together with the breakpoint margin...

I can't reproduce this issue. I tested it with `AvaloniaEdit.Demo` built from source (11.1.0, 11.2.0, and master), as well as with Nuget packages (11.1.0, 11.2.0) using the steps described above....

The text alignment looks fine on my machine (AvaloniaEdit 11.2, Windows 11, no dpi scaling). Can you reproduce the problem in the `AvaloniaEdit.Demo`? What is your OS version and AvaloniaEdit...

It looks like AvaloniaEdit is calling [`Char.IsControl`](https://learn.microsoft.com/en-us/dotnet/api/system.char.iscontrol) to determine whether the character is a control character. https://github.com/AvaloniaUI/AvaloniaEdit/blob/master/src/AvaloniaEdit/Rendering/SingleCharacterElementGenerator.cs#L93C42-L93C59 Based on [that definition](https://learn.microsoft.com/en-us/dotnet/api/system.globalization.unicodecategory?view=net-8.0#system-globalization-unicodecategory-control) `0xFEFF` is not a control character. VS Code also...

This should do the trick: ```cs var line = AvaloniaTextEditor.Document.GetLineByNumber(lineNumer); AvaloniaTextEditor.CaretOffset = line.Offset + column; AvaloniaTextEditor.TextArea.Caret.BringCaretToView(); // ← Try this call. ```

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...

What NuGet packages are you using? When I run your code with the following NuGet packages, it seems to be working fine. ``` ``` Note that I had to change:...