Add support for binding to MarkupString values #47718
Labels
area-blazor
Includes: Blazor, Razor Components
✔️ Resolution: By Design
Resolved because the behavior in this issue is the intended design.
Is there an existing issue for this?
Is your feature request related to a problem? Please describe the problem.
It's not possible to bind components to properties of type
MarkupString
out of the box.This can be quite convenient when you have fragments of HTML that can be directly bound, although not typically in a bi-directional way?
Describe the solution you'd like
Add a
[TypeConverter(typeof(MarkupStringTypeConverter))]
to theMarkupString
type so that things Just Work.Additional context
No response
The text was updated successfully, but these errors were encountered: