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 03:21:38 +00:00
|
|
|
xmlns:behaviors="clr-namespace:IKriv.Windows.Controls.Behaviors"
|
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
|
|
|
|
|
|
|
<Window.Resources>
|
|
|
|
<DataTemplate x:Key="HeaderTemplate">
|
|
|
|
<ContentPresenter Grid.Row="0" Content="{Binding}">
|
|
|
|
<ContentPresenter.Resources>
|
|
|
|
<DataTemplate DataType="{x:Type local:MainWindowVM}">
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
<TextBlock FontSize="16" Margin="0, 0, 8, 0">WABBAJACK 3.0.0</TextBlock>
|
|
|
|
<Button Name="SettingsButton">
|
|
|
|
<icon:Material Kind="Cog"></icon:Material>
|
|
|
|
</Button>
|
|
|
|
</StackPanel>
|
|
|
|
</DataTemplate>
|
|
|
|
|
|
|
|
<DataTemplate DataType="{x:Type local:BrowserTabViewModel}">
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
<TextBlock FontSize="16" Margin="0, 0, 8, 0" Text="{Binding HeaderText}"></TextBlock>
|
|
|
|
<Button Name="SettingsButton">
|
|
|
|
<icon:Material Kind="Close"></icon:Material>
|
|
|
|
</Button>
|
|
|
|
</StackPanel>
|
|
|
|
</DataTemplate>
|
|
|
|
</ContentPresenter.Resources>
|
|
|
|
</ContentPresenter>
|
|
|
|
</DataTemplate>
|
|
|
|
</Window.Resources>
|
|
|
|
|
2022-03-14 03:48:24 +00:00
|
|
|
<Grid Background="#121212" MouseDown="UIElement_OnMouseDown">
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition></RowDefinition>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<Rectangle Grid.Row="0">
|
|
|
|
<Rectangle.Fill>
|
|
|
|
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
|
|
|
|
<GradientStop Offset="0" Color="#16BB86FC" />
|
|
|
|
<GradientStop Offset="0.4" Color="#00000000" />
|
|
|
|
</LinearGradientBrush>
|
|
|
|
</Rectangle.Fill>
|
|
|
|
</Rectangle>
|
2022-05-19 21:47:15 +00:00
|
|
|
<TabControl Grid.Row="0" x:Name="Tabs" behaviors:TabContent.IsCached="True"
|
|
|
|
ItemTemplate="{DynamicResource HeaderTemplate}">
|
2022-05-19 03:21:38 +00:00
|
|
|
<behaviors:TabContent.Template>
|
|
|
|
<DataTemplate>
|
2022-05-19 21:47:15 +00:00
|
|
|
<ContentPresenter Content="{Binding}">
|
2022-03-13 23:08:27 +00:00
|
|
|
<ContentPresenter.Resources>
|
2022-05-19 21:47:15 +00:00
|
|
|
<DataTemplate DataType="{x:Type local:MainWindowVM}">
|
|
|
|
<local:MainWindowContent></local:MainWindowContent>
|
2022-03-13 23:08:27 +00:00
|
|
|
</DataTemplate>
|
2022-05-19 21:47:15 +00:00
|
|
|
|
|
|
|
<DataTemplate DataType="{x:Type local:BrowserTabViewModel}">
|
|
|
|
<views:BrowserTabView></views:BrowserTabView>
|
2022-03-13 23:08:27 +00:00
|
|
|
</DataTemplate>
|
|
|
|
</ContentPresenter.Resources>
|
|
|
|
</ContentPresenter>
|
2022-05-19 21:47:15 +00:00
|
|
|
</DataTemplate>
|
|
|
|
</behaviors:TabContent.Template>
|
2022-03-13 23:08:27 +00:00
|
|
|
</TabControl>
|
2022-03-13 22:47:30 +00:00
|
|
|
</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>
|
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>
|
|
|
|
<TaskbarItemInfo x:Name="TaskbarItemInfo"></TaskbarItemInfo>
|
|
|
|
</Window.TaskbarItemInfo>
|
2022-05-19 21:47:15 +00:00
|
|
|
</mahapps:MetroWindow>
|