Property change on object chnage not triggering? #627
taxinvoice
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
MY CODE
[ObservableProperty]
public CustomerDto selectedCustomer = new CustomerDto();
GENERATED CODE
public global::Xrm.Models.CustomerDto SelectedCustomer
{
get => selectedCustomer;
set
{
if (!global::System.Collections.Generic.EqualityComparerglobal::Xrm.Models.CustomerDto.Default.Equals(selectedCustomer, value))
{
OnSelectedCustomerChanging(value);
OnPropertyChanging(global::CommunityToolkit.Mvvm.ComponentModel.__Internals.__KnownINotifyPropertyChangingArgs.SelectedCustomer);
selectedCustomer = value;
OnSelectedCustomerChanged(value);
OnPropertyChanged(global::CommunityToolkit.Mvvm.ComponentModel.__Internals.__KnownINotifyPropertyChangedArgs.SelectedCustomer);
}
}
}
Beta Was this translation helpful? Give feedback.
All reactions