mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
85 lines
3.6 KiB
Plaintext
85 lines
3.6 KiB
Plaintext
|
<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"
|
||
|
Title="Wabbajack"
|
||
|
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">
|
||
|
<Grid>
|
||
|
<Grid.RowDefinitions>
|
||
|
<RowDefinition Height="*"></RowDefinition>
|
||
|
<RowDefinition Height="Auto"></RowDefinition>
|
||
|
</Grid.RowDefinitions>
|
||
|
<ContentPresenter Grid.Row="0" Content="{Binding ActivePane}">
|
||
|
<ContentPresenter.Resources>
|
||
|
<DataTemplate DataType="{x:Type local:CompilerVM}">
|
||
|
<local:CompilerView ViewModel="{Binding}" />
|
||
|
</DataTemplate>
|
||
|
<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}" />
|
||
|
</DataTemplate>
|
||
|
</ContentPresenter.Resources>
|
||
|
</ContentPresenter>
|
||
|
<TextBlock Grid.Row="1" Margin="5, 0" Name="ResourceUsage" HorizontalAlignment="Right"></TextBlock>
|
||
|
</Grid>
|
||
|
|
||
|
<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>
|
||
|
<ToolTip Content="Wabbajack Version
Click to copy to clipboard"/>
|
||
|
</Button.ToolTip>
|
||
|
</Button>
|
||
|
<Button Grid.Column="1"
|
||
|
Margin="5,0"
|
||
|
Command="{Binding OpenSettingsCommand}">
|
||
|
<icon:PackIconMaterial
|
||
|
Width="17"
|
||
|
Height="17"
|
||
|
Kind="Cog" />
|
||
|
</Button>
|
||
|
</mahapps:WindowCommands>
|
||
|
</mahapps:MetroWindow.RightWindowCommands>
|
||
|
<Window.TaskbarItemInfo>
|
||
|
<TaskbarItemInfo x:Name="TaskbarItemInfo"></TaskbarItemInfo>
|
||
|
</Window.TaskbarItemInfo>
|
||
|
</mahapps:MetroWindow>
|