If my plugin puts together a text string, to bind to a label, is there any way it can include icons, html entities or html formatting?
Can I get something looking like this, in a single string bound from a plugin to a label?
10/15 in/out
Thanks
If my plugin puts together a text string, to bind to a label, is there any way it can include icons, html entities or html formatting?
Can I get something looking like this, in a single string bound from a plugin to a label?
10/15 in/out
Thanks
The Label control does not currently support HTML formatting so there is no way to do this.
Thanks.
Is there another container where one could inject “enhanced” text (adding icons, specifying text color & size changes, etc) prepared by a plugin?
You can use DataTriggers to change the text or icons for the Label. If you need HTML support you can use the WebBrowser control. That’s the only control that can render HTML.
A while ago you introduced bindable HTML (Bindable HTML is very promising).
Can that be done through the designer? or still only by editing the definition file?
Yes. That is the Designer you are looking at in that post. HTML is a bindable property, just like the Text property is for a Label.
In that post I edited the xaml file.
When I click the 3 dots beside Html it takes me to a text editor. Can’t find a way to define a device attribute to bind to. (latest version of the editor)
OK. You’re right. You do have to the XAML view to change that. Just click the XAML button in the bottom right corner of the Designer window & edit it as shown in that example.
Much thanks!
(hopefully html bind definition can be added to the designer sometime in the future)