Bound UI Enabled

This commit is contained in:
MaddoScientisto 2024-10-14 23:48:21 +02:00
commit 4e4a59b0b2
3 changed files with 36 additions and 17 deletions

View file

@ -50,9 +50,22 @@ namespace ImageCatalog_2
}
}
private bool _uiEnabled = true;
public bool UiEnabled
{
get { return _uiEnabled; }
set
{
_uiEnabled = value;
NotifyPropertyChanged();
}
}
private void Test(object parameter)
{
Debug.WriteLine("Yep");
this.UiEnabled = !this.UiEnabled;
}
private async Task TestAsync()