CommunityToolkit icon indicating copy to clipboard operation
CommunityToolkit copied to clipboard

How to generate a property with a validation method using the [ObservableProperty] attribute?

Open yangf85 opened this issue 6 months ago • 0 comments

Hi,everyone! Here's my question: When I use the [ObservableProperty] attribute, it generates a regular property without a validation method. If I need to validate this property, I have to write out the entire property, like this. Is there a better way to implement it?

image

yangf85 avatar Aug 23 '24 09:08 yangf85