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.
29 lines
647 B
C#
29 lines
647 B
C#
using CommunityToolkit.Mvvm.ComponentModel;
|
|
using CommunityToolkit.Mvvm.Input;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace MvvmCommunityApp.viewmodels
|
|
{
|
|
public class MainWindowViewModel : ObservableObject
|
|
{
|
|
public string Title { get; set; }
|
|
public RelayCommand AddCommand { get; }
|
|
|
|
public MainWindowViewModel()
|
|
{
|
|
Title = "MyIocName";
|
|
//
|
|
AddCommand = new RelayCommand(DoAdd);
|
|
}
|
|
|
|
private void DoAdd()
|
|
{
|
|
Console.WriteLine("Do Add");
|
|
}
|
|
}
|
|
}
|