Skip to content

Blazor (client): Support value converters or similar for binding #11084

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

Closed
LaughingJohn opened this issue Jun 11, 2019 · 3 comments
Closed

Blazor (client): Support value converters or similar for binding #11084

LaughingJohn opened this issue Jun 11, 2019 · 3 comments
Labels
area-blazor Includes: Blazor, Razor Components enhancement This issue represents an ask for new feature or an enhancement to an existing one ✔️ Resolution: Duplicate Resolved as a duplicate of another issue

Comments

@LaughingJohn
Copy link

LaughingJohn commented Jun 11, 2019

Hi,

I'm new to Blazor and have been experimenting with porting an existing application (which is implemented in both WPF & SL).

WPF and SL have ways of formatting values as they pass back and forth in a binding. Notably value converters (IValueConverter), but also StringFormat, TargetNullValue and FallbackValue.

I wondered if there was anything like this available for Blazor (client side) or whether there was any plan to implement something.

I noticed it while trying to bind a nullable type to a Telerik control. The control doesn't support nullable types, although I hope it will. I thought I could have used a converter or possibly a TargetNullValue. I'm sure there are other circumstances where this could be useful.

Thanks.

@LaughingJohn LaughingJohn changed the title Support IValueConverter or similar for binding Blazor (client): Support value converters or similar for binding Jun 11, 2019
@LaughingJohn
Copy link
Author

I've just spotted format-value which I guess goes some of the way but a value converter can deal with bi-directional bindings.

@analogrelay analogrelay added the area-blazor Includes: Blazor, Razor Components label Jun 11, 2019
@mkArtakMSFT
Copy link
Member

Thanks for contacting us, @LaughingJohn.
This has been done as part of #8493

@mkArtakMSFT mkArtakMSFT added ✔️ Resolution: Duplicate Resolved as a duplicate of another issue enhancement This issue represents an ask for new feature or an enhancement to an existing one labels Jun 19, 2019
@LaughingJohn
Copy link
Author

Thank you!

@mkArtakMSFT mkArtakMSFT added this to the 3.0.0-preview7 milestone Jun 27, 2019
@ghost ghost locked as resolved and limited conversation to collaborators Dec 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-blazor Includes: Blazor, Razor Components enhancement This issue represents an ask for new feature or an enhancement to an existing one ✔️ Resolution: Duplicate Resolved as a duplicate of another issue
Projects
None yet
Development

No branches or pull requests

3 participants