Skip to content

Use text in an InfoBadge #569

Answered by amwx
ItsTheSky asked this question in Q&A
May 15, 2024 · 2 comments · 5 replies
Discussion options

You must be logged in to vote

Changing to object, no. That opens the control up to things its not designed for, plus you end up boxing a value type just to convert it to a string - of which the control is normally designed for.
If anything, I'd add a ValueString property and then the displayed value would be whichever is set, with the original Value property taking priority. However, this is not something I'm looking at in the 2.1 time frame.

There is a workaround you could use for now. Use a FontIconSource and with the string you want to display, and set that as the IconSource to the InfoBadge. I haven't tested this, but it theoretically should work. There are also various display modes you can add a styling class fo…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@ItsTheSky
Comment options

Comment options

You must be logged in to vote
4 replies
@robloo
Comment options

@timunie
Comment options

@amwx
Comment options

amwx May 17, 2024
Maintainer

Answer selected by ItsTheSky
@ItsTheSky
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants