-
Notifications
You must be signed in to change notification settings - Fork 90
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
making a simple string parser to insert the icon #2
Comments
Ah, i see. Nice idea. Some thoughts on this. The parser would
The generated inline for the textblock could be equivalent to this XAML
Is that kind of what you had in mind? |
Usage could be like this
This would allow binding a text which includes icon-tags. Nice. I would suggest to get close to the standard c# string interpolation syntax for icon-tags like this
I'm not sure yet if subclassing a text block would be a good fit. Maybe an attached behavior would suit better. Here is an example where we used an attached behavior to format highlighted search results from elasticsearch back into a textblock |
@furesoft Right now, i have no time for this. Feel free to contribute and do a pull request. |
hi, pls add a string parser to add icons to textblock, rtb, etc like this:
:btc: is a cryptocurrency. :EURO: is a fiat money
The text was updated successfully, but these errors were encountered: