-
Hi there. It seems the "Value" property of InfoBadge only supports |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
No there isn't. You are free to create a new control using the |
Beta Was this translation helpful? Give feedback.
-
@amwx would you be okay with a PR changing it to |
Beta Was this translation helpful? Give feedback.
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 originalValue
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…