-
Notifications
You must be signed in to change notification settings - Fork 410
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
[Proposal] IsNull / IsNotNull Converters #306
Comments
If approved, I'm happy to put a PR together for it |
Thanks @IeuanWalker! This all looks good! The only thing I'd tweak is to use I'll raise this for a vote/approval at our next standup, 03 March. |
I approve this proposal ✅ |
can we use |
Good catch! Yes, this is a perfect use case for I'll edit the description now 👍 |
I vote to approve |
Congrats @IeuanWalker! This Proposal has officially been approved and can be implemented! Would you like to also do the implementation and open a Pull Request? |
@brminnick awesome, ye will do |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Reopening Proposal. Only Proposals moved to the |
Reopening Proposal. Only Proposals moved to the |
IsNull IsNotNull Converters
Link to Discussion
Discussion
Summary
The
IsNullConverter
is a converter that allows users to convert an incoming binding to a bool value. This value represents if the incoming binding value is null.The
IsNotNullConverter
is a converter that allows users to convert an incoming binding to a bool value. This value represents if the incoming binding value is not null.Motivation
As mentioned in the discussion this was the behaviour of another converter, so these converters would just reimplement the old behaviour. It's been quite common in the projects I've worked on to be able to check any object type if it's null or not.
Detailed Design
IsNotNullConverter.shared.cs
IsNullConverter.shared.cs
Usage Syntax
XAML Usage
C# Usage
Drawbacks
None
Alternatives
None
The text was updated successfully, but these errors were encountered: