zhaw-dnet2/Tasks/Lab12/TodoDetails/ViewModel/BaseViewModel.cs

22 lines
470 B
C#

using CommunityToolkit.Mvvm.ComponentModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TodoDetails.ViewModel
{
public partial class BaseViewModel : ObservableObject
{
[ObservableProperty]
[NotifyPropertyChangedFor(nameof(IsNotBusy))]
bool isBusy;
[ObservableProperty]
string? title;
public bool IsNotBusy => !IsBusy;
}
}