Hello
I am using it by making a ViewModelBase class by default.
I looked at Telerik's ViewModelBase class documentation and this is not what I'm looking for.
https://docs.telerik.com/devtools/wpf/common-information/mvvm-helpers/common-viewmodelbase-class
I prefer to display getter setters on one line.
using Telerik.Windows.Controls;
private object item;
public object Item
{
get => item;
set
{
item= value;
RaisePropertyChanged();
}
}
// Create ViewModelBase helper method
protected virtual bool SetField<T>( ref T member, T newValue, [CallerMemberName] string propertyName) ... ...
private object item;
public object Item
{
get => item;
set => SetField(ref item, value);
}
I want to keep it simple. Do you have any plans to improve this?
Or I would like to ask if it is possible to create a similar one and use it while using the Telerik ViewModelBase Class.
If that doesn't work, I'll continue to create and use my ViewModelClass.
Thanks.