1using System.ComponentModel;
2using System.Runtime.CompilerServices;
3using CommunityToolkit.Mvvm.ComponentModel;
4using CommunityToolkit.Mvvm.Input;
12 [ObservableProperty]
private bool isSelected;
14 public IRelayCommand SelectCommand {
get; }
18 this.Language = language;
19 this.SelectCommand =
new AsyncRelayCommand(() => select(this.Language.Name));