How do specify properties using [Reactive], that are using my property? #3299
-
|
For example having this in my ViewModel: [Reactive]public string FirstName { get; set; }
[Reactive]public string LastName { get; set; }
public string FullName => FirstName + " " + LastName;Is there a way to automatically get INotifyPropertyChanged invoked for FullName, whenever one of the first two properties are changed? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Yes, you are looking for |
Beta Was this translation helpful? Give feedback.
-
|
There's also another built in functionality in the fody for this |
Beta Was this translation helpful? Give feedback.
Yes, you are looking for
ToPropertyandObservableAsPropertyHelper- https://www.reactiveui.net/docs/handbook/observable-as-property-helper/