wabbajack/Wabbajack/Views/MainWindow.xaml

85 lines
3.4 KiB
Plaintext
Raw Normal View History

2019-11-25 05:43:56 +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"
2019-11-25 05:43:56 +00:00
xmlns:mahapps="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Title="Wabbajack"
Width="1280"
Height="960"
MinWidth="850"
MinHeight="650"
Closing="Window_Closing"
RenderOptions.BitmapScalingMode="HighQuality"
ResizeMode="CanResize"
Style="{StaticResource {x:Type Window}}"
2020-01-25 23:25:51 +00:00
TitleBarHeight="25"
UseLayoutRounding="True"
2020-01-25 23:25:51 +00:00
WindowTitleBrush="{StaticResource MahApps.Brushes.Accent}"
mc:Ignorable="d">
2019-11-02 00:17:23 +00:00
<ContentPresenter Content="{Binding ActivePane}">
<ContentPresenter.Resources>
2019-11-02 00:17:23 +00:00
<DataTemplate DataType="{x:Type local:CompilerVM}">
2020-01-20 21:59:26 +00:00
<local:CompilerView ViewModel="{Binding}" />
</DataTemplate>
2019-11-02 00:17:23 +00:00
<DataTemplate DataType="{x:Type local:InstallerVM}">
<local:InstallationView ViewModel="{Binding}" />
</DataTemplate>
2019-11-24 08:12:28 +00:00
<DataTemplate DataType="{x:Type local:ModeSelectionVM}">
<local:ModeSelectionView ViewModel="{Binding}" />
2019-11-24 08:12:28 +00:00
</DataTemplate>
2019-11-30 09:08:04 +00:00
<DataTemplate DataType="{x:Type local:ModListGalleryVM}">
<local:ModListGalleryView ViewModel="{Binding}" />
2019-11-30 09:08:04 +00:00
</DataTemplate>
<DataTemplate DataType="{x:Type local:WebBrowserVM}">
<local:WebBrowserView />
</DataTemplate>
<DataTemplate DataType="{x:Type local:BethesdaNetLoginVM}">
<local:BethesdaNetLoginView />
</DataTemplate>
<DataTemplate DataType="{x:Type local:SettingsVM}">
<local:SettingsView ViewModel="{Binding}" />
</DataTemplate>
</ContentPresenter.Resources>
</ContentPresenter>
2019-12-14 23:31:53 +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}">
2019-12-14 23:31:53 +00:00
<Button.ToolTip>
<TextBlock>
Wabbajack Version<LineBreak />
Click to copy to clipboard</TextBlock>
</Button.ToolTip>
</Button>
<Button
Grid.Column="1"
Margin="5,0"
Command="{Binding OpenSettingsCommand}">
<icon:PackIconMaterial
Width="17"
Height="17"
2020-04-21 04:07:40 +00:00
Kind="Cog" />
</Button>
<Button
Grid.Column="1"
Margin="5,0"
Command="{Binding OpenTerminalCommand}">
<icon:PackIconMaterial
Width="17"
Height="17"
Kind="Console" />
</Button>
2019-12-14 23:31:53 +00:00
</mahapps:WindowCommands>
</mahapps:MetroWindow.RightWindowCommands>
2019-11-25 05:43:56 +00:00
</mahapps:MetroWindow>