We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Text selection works only with precise positioning to the beginning of the text. Even if there are paddings. This causes some inconvenience.
<SelectableTextBlock Text="Hello SelectableTextBlock" Margin="20" Padding="20 0 20 0" Background="Wheat" Width="250"/> <AvaloniaEdit:TextEditor Text="Hello AvaloniaEdit" Margin="20" Padding="20 0 20 0" Background="Wheat" Width="250"/>
In SelectableTextBlock it works fine
The text was updated successfully, but these errors were encountered:
Instead of changing the TextEditor.Padding, you can change the TextView.Margin. Example:
TextEditor.Padding
TextView.Margin
<Window xmlns="https://github.com/avaloniaui" ... xmlns:rendering="using:AvaloniaEdit.Rendering" ...> ... <AvalonEdit:TextEditor> <AvalonEdit:TextEditor.Styles> <Style Selector="rendering|TextView"> <Setter Property="Margin" Value="20 0 20 0" /> </Style> </AvalonEdit:TextEditor.Styles> </AvalonEdit:TextEditor> ... </Window>
Sorry, something went wrong.
Instead of changing the TextEditor.Padding, you can change the TextView.Margin. Example: <Window xmlns="https://github.com/avaloniaui" ... xmlns:rendering="using:AvaloniaEdit.Rendering" ...> ... <AvalonEdit:TextEditor> <AvalonEdit:TextEditor.Styles> <Style Selector="rendering|TextView"> <Setter Property="Margin" Value="20 0 20 0" /> </Style> </AvalonEdit:TextEditor.Styles> </AvalonEdit:TextEditor> ...
<Window xmlns="https://github.com/avaloniaui" ... xmlns:rendering="using:AvaloniaEdit.Rendering" ...>
... <AvalonEdit:TextEditor> <AvalonEdit:TextEditor.Styles> <Style Selector="rendering|TextView"> <Setter Property="Margin" Value="20 0 20 0" /> </Style> </AvalonEdit:TextEditor.Styles> </AvalonEdit:TextEditor> ...
It works, thanks!
No branches or pull requests
Text selection works only with precise positioning to the beginning of the text. Even if there are paddings. This causes some inconvenience.
In SelectableTextBlock it works fine
2024-12-17.14-27-14.mp4
The text was updated successfully, but these errors were encountered: