Skip to content
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

Supress Warnings For AutoBindable Field #19

Open
Axemasta opened this issue Sep 4, 2023 · 2 comments
Open

Supress Warnings For AutoBindable Field #19

Axemasta opened this issue Sep 4, 2023 · 2 comments

Comments

@Axemasta
Copy link

Axemasta commented Sep 4, 2023

Currently if your control has an autogenerated bindable property, you will get IDE warnings for an unused field:

[AutoBindable]
private readonly ICommand? completedCommand;

I have noted the following warnings:

My proposal is to generate suppression attributes for these warnings since we know they aren't actually unused. I believe the MVVM community toolkit does a similar thing so maybe there is code to copy across.

MVVM toolkit also has a warning for accessing a backing field directly, perhaps that might be useful for this library?

I am happy to take on the work for this feature!

@tranb3r
Copy link

tranb3r commented Dec 13, 2023

I'd really like this to be fixed.
Indeed it's very similar to CommunityToolkit.Mvvm.

@rrmanzano
Copy link
Owner

Hi, @Axemasta yes, I am working on this fix, and should be ready soon, I will keep you updated on this thread. Thanks for your feedback !!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants