Closed gsa-m closed 1 month ago
I am seeing the same issue (Avalonia 11.1.3, AvaloniaEdit 11.1.0). Changing the control template here to
<ContentPresenter Content="{Binding Content, Mode=OneTime}" />
fixes the issue – at least in my app. Not sure what the underlying cause is. Some changes in the binding system?
Another solution (in a ICompletionData implementarion):
public object Content => this;
Be careful it may lead to StackOverflow
The list display problems start with Avalonia version 11.1.0 (the previous version 11.0.13 works correctly).
Error: [Binding]An error occurred binding 'Content' to 'Content' at 'Content': 'Unable to cast object of type 'System.String' to type 'AvaloniaEdit.CodeCompletion.ICompletionData'.' (ContentPresenter #48657561)