Skip to content
New issue

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

TextBox with color support #2842

Closed
Jivko1212 opened this issue Aug 13, 2019 · 14 comments
Closed

TextBox with color support #2842

Jivko1212 opened this issue Aug 13, 2019 · 14 comments

Comments

@Jivko1212
Copy link

What is the easiest way to use the RichTextBox functionality in Avalonia that allows for different colored text? Such text box can be used to display application logs for example with different lines having different color depending on the log level (Debug, Info, Error,Fatal).

Thanks

@Gillibald
Copy link
Contributor

This is currently not supported but will be by this: #1950

@derekantrican
Copy link
Contributor

@Gillibald looks like that PR is closed. Any updates on this?

@Gillibald
Copy link
Contributor

Inlines support will come later this year

@maxkatz6 maxkatz6 mentioned this issue Oct 12, 2020
@hopeko
Copy link

hopeko commented Jan 29, 2021

Inlines support will come later this year

2020 is over...

@Gillibald
Copy link
Contributor

You can pay me to speed things up that I do in my free time. Trust me I am not cheap....

@derekantrican
Copy link
Contributor

@hopeko
Copy link

hopeko commented Jan 30, 2021

You can pay me to speed things up that I do in my free time. Trust me I am not cheap....

Funny... You said that, not me.

@hopeko
Copy link

hopeko commented Jan 30, 2021

@derekantrican Thanks, I'll try.

@alexandrehtrb
Copy link

Hello,

Is there a way to colourize parts of text in a TextBox?
I managed to do that with Inlines and Runs in TextBlock, I would like to do with TextBox too.

@timunie
Copy link
Contributor

timunie commented Sep 4, 2023

Beside AvaloniaEdit or custom control? None I am aware of for the time being.

@alexandrehtrb
Copy link

Would it be possible for TextBox to support Inlines? TextEditor is a bit too much for my use-case...

@alexandrehtrb
Copy link

Beside AvaloniaEdit or custom control? None I am aware of for the time being.

How could I make a custom control for that? Do you guys have an idea of where to start?

@timunie
Copy link
Contributor

timunie commented Oct 9, 2023

Inherit SelectableTextBlock and add the logic needed. Good luck :-)

@maxkatz6
Copy link
Member

I am closing this issue in favor of RichTextBox from #4625
It is planned to be implemented and will be available when it's ready.

@maxkatz6 maxkatz6 closed this as not planned Won't fix, can't repro, duplicate, stale Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants