Hello,
Is there a sample showing how to implement an interface when using ObservableProperty & RelayCommand attributes? How would one implement the ISampleViewModel interface for SampleViewModel?
public partial class SampleViewModel : ObservableObject
{
[ObservableProperty]
ObservableCollection items;
[RelayCommand]
void IncrementCounter()
{
}
}
public interface ISampleViewModel
{
ObservableCollection Items { get; set; }
void IncrementCounterCommand();
}
Hello,
Is there a sample showing how to implement an interface when using ObservableProperty & RelayCommand attributes? How would one implement the ISampleViewModel interface for SampleViewModel?
public partial class SampleViewModel : ObservableObject
{
[ObservableProperty]
ObservableCollection items;
}
public interface ISampleViewModel
{
ObservableCollection Items { get; set; }
}