2022-03-13 22:47:30 +00:00
|
|
|
<mahapps:MetroWindow
|
|
|
|
x:Class="Wabbajack.MainWindow"
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
xmlns:icon="http://metro.mahapps.com/winfx/xaml/iconpacks"
|
|
|
|
xmlns:local="clr-namespace:Wabbajack"
|
|
|
|
xmlns:mahapps="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
xmlns:viewModels="clr-namespace:Wabbajack.View_Models"
|
2022-05-19 21:47:15 +00:00
|
|
|
xmlns:views="clr-namespace:Wabbajack.Views"
|
2022-03-14 03:48:24 +00:00
|
|
|
ShowTitleBar="False"
|
|
|
|
Title="WABBAJACK"
|
2022-03-13 22:47:30 +00:00
|
|
|
Width="1280"
|
|
|
|
Height="960"
|
|
|
|
MinWidth="850"
|
|
|
|
MinHeight="650"
|
|
|
|
Closing="Window_Closing"
|
|
|
|
RenderOptions.BitmapScalingMode="HighQuality"
|
|
|
|
ResizeMode="CanResize"
|
|
|
|
Style="{StaticResource {x:Type Window}}"
|
|
|
|
TitleBarHeight="25"
|
|
|
|
UseLayoutRounding="True"
|
|
|
|
WindowTitleBrush="{StaticResource MahApps.Brushes.Accent}"
|
|
|
|
mc:Ignorable="d">
|
2022-05-19 21:47:15 +00:00
|
|
|
|
|
|
|
|
2022-05-20 03:23:16 +00:00
|
|
|
<Grid>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="Auto"></RowDefinition>
|
|
|
|
<RowDefinition Height="*"></RowDefinition>
|
|
|
|
<RowDefinition Height="Auto"></RowDefinition>
|
|
|
|
</Grid.RowDefinitions>
|
2022-05-20 22:33:09 +00:00
|
|
|
<Grid Grid.Row="0" Margin="5">
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="Auto"></ColumnDefinition>
|
|
|
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
|
|
|
<ColumnDefinition Width="Auto"></ColumnDefinition>
|
|
|
|
<ColumnDefinition Width="140"></ColumnDefinition>
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<TextBlock Grid.Column="0" FontSize="16" Margin="0, 0, 8, 0" Name="AppName"></TextBlock>
|
2022-05-21 17:20:28 +00:00
|
|
|
<TextBlock Grid.Column="1" FontSize="16" Margin="5, 0" Name="ResourceUsage" HorizontalAlignment="Right" VerticalAlignment="Center"></TextBlock>
|
2023-05-07 20:32:18 +00:00
|
|
|
<Button Grid.Column="2" Name="SettingsButton" ToolTip="Open Wabbajack settings">
|
2022-05-20 03:23:16 +00:00
|
|
|
<icon:Material Kind="Cog"></icon:Material>
|
|
|
|
</Button>
|
2022-05-20 22:33:09 +00:00
|
|
|
</Grid>
|
2022-05-20 03:23:16 +00:00
|
|
|
<ContentPresenter Grid.Row="1" Content="{Binding ActivePane}">
|
2022-03-13 23:08:27 +00:00
|
|
|
<ContentPresenter.Resources>
|
2022-05-20 03:23:16 +00:00
|
|
|
<DataTemplate DataType="{x:Type local:CompilerVM}">
|
|
|
|
<local:CompilerView ViewModel="{Binding}" />
|
2022-03-13 23:08:27 +00:00
|
|
|
</DataTemplate>
|
2022-05-20 03:23:16 +00:00
|
|
|
<DataTemplate DataType="{x:Type local:InstallerVM}">
|
|
|
|
<local:InstallationView ViewModel="{Binding}" />
|
|
|
|
</DataTemplate>
|
|
|
|
<DataTemplate DataType="{x:Type local:ModeSelectionVM}">
|
|
|
|
<local:ModeSelectionView ViewModel="{Binding}" />
|
|
|
|
</DataTemplate>
|
|
|
|
<DataTemplate DataType="{x:Type local:ModListGalleryVM}">
|
|
|
|
<local:ModListGalleryView ViewModel="{Binding}" />
|
|
|
|
</DataTemplate>
|
|
|
|
<DataTemplate DataType="{x:Type local:WebBrowserVM}">
|
|
|
|
<local:WebBrowserView />
|
|
|
|
</DataTemplate>
|
|
|
|
<DataTemplate DataType="{x:Type local:SettingsVM}">
|
|
|
|
<local:SettingsView ViewModel="{Binding}" />
|
|
|
|
</DataTemplate>
|
|
|
|
<DataTemplate DataType="{x:Type viewModels:ModListContentsVM}">
|
|
|
|
<local:ModListContentsView ViewModel="{Binding}" />
|
2022-03-13 23:08:27 +00:00
|
|
|
</DataTemplate>
|
|
|
|
</ContentPresenter.Resources>
|
|
|
|
</ContentPresenter>
|
2022-05-20 22:33:09 +00:00
|
|
|
|
2022-05-20 03:23:16 +00:00
|
|
|
</Grid>
|
2022-03-13 22:47:30 +00:00
|
|
|
|
|
|
|
<mahapps:MetroWindow.RightWindowCommands>
|
|
|
|
<mahapps:WindowCommands>
|
|
|
|
<mahapps:WindowCommands.Resources>
|
|
|
|
<Style BasedOn="{StaticResource IconBareButtonStyle}" TargetType="Button" />
|
|
|
|
</mahapps:WindowCommands.Resources>
|
|
|
|
|
|
|
|
<Button
|
|
|
|
Margin="5,0"
|
|
|
|
Command="{Binding CopyVersionCommand}"
|
|
|
|
Content="{Binding VersionDisplay}">
|
|
|
|
<Button.ToolTip>
|
2022-05-19 21:47:15 +00:00
|
|
|
<ToolTip Content="Wabbajack Version
Click to copy to clipboard" />
|
2022-03-13 22:47:30 +00:00
|
|
|
</Button.ToolTip>
|
|
|
|
</Button>
|
|
|
|
<Button Grid.Column="1"
|
2022-05-19 21:47:15 +00:00
|
|
|
Margin="5,0"
|
|
|
|
Command="{Binding OpenSettingsCommand}">
|
2022-03-13 22:47:30 +00:00
|
|
|
<icon:PackIconMaterial
|
|
|
|
Width="17"
|
|
|
|
Height="17"
|
|
|
|
Kind="Cog" />
|
|
|
|
</Button>
|
|
|
|
</mahapps:WindowCommands>
|
|
|
|
</mahapps:MetroWindow.RightWindowCommands>
|
|
|
|
<Window.TaskbarItemInfo>
|
2022-10-08 04:06:17 +00:00
|
|
|
<TaskbarItemInfo x:Name="TaskbarItemInfoControl"></TaskbarItemInfo>
|
2022-03-13 22:47:30 +00:00
|
|
|
</Window.TaskbarItemInfo>
|
2022-05-19 21:47:15 +00:00
|
|
|
</mahapps:MetroWindow>
|