Prism.Core
code:ViewModel.cs
public class ViewModel: BindableBase
{
private string _hello = "Hello, World!";
public string Hello
{
get => _hello;
set => SetProperty(ref _hello, value, nameof(Hello));
}
public ICommand OnHelloClicked { get; private set; }
public ViewModel()
{
OnHelloClicked = new DelegateCommand(() => {
this.Hello = "ようこそ";
});
}
}