mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2025-05-28 13:44:12 -04:00
Lock the background UI when a dialog is open
This commit is contained in:
parent
fdf421df3c
commit
dabed24c16
1 changed files with 3 additions and 1 deletions
|
@ -7,6 +7,7 @@
|
||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
xmlns:s="https://github.com/canton7/Stylet"
|
xmlns:s="https://github.com/canton7/Stylet"
|
||||||
xmlns:viewModels="clr-namespace:DiscordChatExporter.Gui.ViewModels"
|
xmlns:viewModels="clr-namespace:DiscordChatExporter.Gui.ViewModels"
|
||||||
|
xmlns:converters="clr-namespace:DiscordChatExporter.Gui.Converters"
|
||||||
Width="600"
|
Width="600"
|
||||||
Height="550"
|
Height="550"
|
||||||
MinWidth="325"
|
MinWidth="325"
|
||||||
|
@ -21,10 +22,11 @@
|
||||||
</Window.TaskbarItemInfo>
|
</Window.TaskbarItemInfo>
|
||||||
|
|
||||||
<materialDesign:DialogHost
|
<materialDesign:DialogHost
|
||||||
|
x:Name="DialogHost"
|
||||||
Loaded="{s:Action OnViewFullyLoaded}"
|
Loaded="{s:Action OnViewFullyLoaded}"
|
||||||
SnackbarMessageQueue="{Binding Notifications}"
|
SnackbarMessageQueue="{Binding Notifications}"
|
||||||
Style="{DynamicResource MaterialDesignEmbeddedDialogHost}">
|
Style="{DynamicResource MaterialDesignEmbeddedDialogHost}">
|
||||||
<Grid>
|
<Grid IsEnabled="{Binding IsOpen, ElementName=DialogHost, Converter={x:Static converters:InverseBoolConverter.Instance}}">
|
||||||
<ContentControl s:View.Model="{Binding Dashboard}" />
|
<ContentControl s:View.Model="{Binding Dashboard}" />
|
||||||
<materialDesign:Snackbar MessageQueue="{Binding Notifications}" />
|
<materialDesign:Snackbar MessageQueue="{Binding Notifications}" />
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue