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

Add optional PropertyName parameter to the ObservablePropertyAttribute #706

Closed
failwyn opened this issue May 22, 2023 · 1 comment
Closed
Labels
feature request 📬 A request for new changes to improve functionality mvvm-toolkit 🧰 Issues/PRs for the MVVM Toolkit

Comments

@failwyn
Copy link

failwyn commented May 22, 2023

Overview

It would be nice to have the ability to override the generated property name with the ObservablePropertyAttribute

API breakdown

CommunityToolkit.Mvvm.ComponentModel;

Usage example

[ObserableProperty("SSN")
private string ssn;

Breaking change?

No

Alternatives

Manually create the property

Help us help you

No, just wanted to propose this

@failwyn failwyn added the feature request 📬 A request for new changes to improve functionality label May 22, 2023
@Sergio0694 Sergio0694 added the mvvm-toolkit 🧰 Issues/PRs for the MVVM Toolkit label May 22, 2023
@Sergio0694
Copy link
Member

There are no plans to add new properties to [ObservableProperty] to customize generation from fields.
This scenario will implicitly be supported by #555, as you'll be able to just change the name of the property directly 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request 📬 A request for new changes to improve functionality mvvm-toolkit 🧰 Issues/PRs for the MVVM Toolkit
Projects
None yet
Development

No branches or pull requests

2 participants