You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.6 KiB
34 lines
1.6 KiB
<Window
|
|
x:Class="DiscordChatExporter.Gui.Views.RootView"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:converters="clr-namespace:DiscordChatExporter.Gui.Converters"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:s="https://github.com/canton7/Stylet"
|
|
xmlns:viewModels="clr-namespace:DiscordChatExporter.Gui.ViewModels"
|
|
Width="625"
|
|
Height="575"
|
|
MinWidth="325"
|
|
d:DataContext="{d:DesignInstance Type=viewModels:RootViewModel}"
|
|
Background="{DynamicResource MaterialDesignPaper}"
|
|
Icon="/DiscordChatExporter;component/favicon.ico"
|
|
Style="{DynamicResource MaterialDesignRoot}"
|
|
WindowStartupLocation="CenterScreen"
|
|
mc:Ignorable="d">
|
|
<Window.TaskbarItemInfo>
|
|
<TaskbarItemInfo ProgressState="Normal" ProgressValue="{Binding Dashboard.Progress.Current.Fraction}" />
|
|
</Window.TaskbarItemInfo>
|
|
|
|
<materialDesign:DialogHost
|
|
x:Name="DialogHost"
|
|
Loaded="{s:Action OnViewFullyLoaded}"
|
|
SnackbarMessageQueue="{Binding Notifications}"
|
|
Style="{DynamicResource MaterialDesignEmbeddedDialogHost}">
|
|
<Grid IsEnabled="{Binding IsOpen, ElementName=DialogHost, Converter={x:Static converters:InverseBoolConverter.Instance}}">
|
|
<ContentControl s:View.Model="{Binding Dashboard}" />
|
|
<materialDesign:Snackbar MessageQueue="{Binding Notifications}" />
|
|
</Grid>
|
|
</materialDesign:DialogHost>
|
|
</Window> |