You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
652 B
C#

using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using System;
namespace MvvmCommunityApp.viewmodels
{
public partial class MainWindowViewModel : ObservableObject
{
public string Title { get; set; }
[ObservableProperty]
private string _customer;
public MainWindowViewModel()
{
Title = "MyIocName";
//
}
[RelayCommand]
private void Add()
{
Console.WriteLine("Do Add");
}
[RelayCommand]
private void Update()
{
Customer = "New Customer";
}
}
}