📷 MVVM: レンズ(ViewModel)とモニター(View)
ViewModel (MainViewModel.cs)
public string Message
{
get => _model.Message;
set { ... }
}
値を変更:
INotifyPropertyChanged!
View (MainWindow.xaml)
HalloWorld
<TextBlock Text="{Binding Message}" />