0

I'm working on a; .Net7 MAUI app.
CommunityToolkit.Maui 3.1.0 CommunityToolkit.Mvvm 8.1.0-p2

I have a DatePicker in my xaml bound to a DateTime property (date of birth (dob)) in the ViewModel.

[ObservableProperty]
private DateTime dateOfBirth;

After the user changes the dob I want another function that utilizes this value to be called by using another annotation on the dob property. Something like [AndAlsoCallThisFunction=nameof(myFunc)]

I remember they updated the names of the annotations a while ago.
What is the annotation I need at this time please?

Also, do I need CT.Mvvm when using CT.Maui?

TYIA! :)

Ray Brennan
  • 373
  • 1
  • 6
  • 19
  • CT creates an empty partial void OnDateOfBirthChanged(string value); That I need to edit to look like: partial void OnDateOfBirthChanged(string value) { GetSuggestions(); } – Ray Brennan Dec 20 '22 at 13:47

0 Answers0