Disable whole UI when busy

This commit is contained in:
Alexey Golub
2017-10-02 19:16:06 +03:00
parent 1850caba71
commit 8ac8c16db3
3 changed files with 7 additions and 11 deletions

View File

@@ -20,6 +20,9 @@ Window "DiscordChatExporter.Views.MainWindow" {
DialogHost {
DockPanel {
IsEnabled: bind IsBusy
convert (bool b) => b ? false : true
// Toolbar
Border {
DockPanel.Dock: Top
@@ -100,8 +103,6 @@ Window "DiscordChatExporter.Views.MainWindow" {
Grid {
DockPanel {
Background: resource dyn "MaterialDesignCardBackground"
IsEnabled: bind IsBusy
convert (bool b) => b ? false : true
Visibility: bind IsDataAvailable
convert (bool b) => b ? Visibility.Visible : Visibility.Hidden