wabbajack/Wabbajack.App.Wpf/Views/BrowserWindow.xaml

54 lines
2.9 KiB
Plaintext
Raw Normal View History

2022-05-20 03:23:16 +00:00
<mahapps:MetroWindow x:Class="Wabbajack.BrowserWindow"
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"
xmlns:wpf="clr-namespace:Microsoft.Web.WebView2.Wpf;assembly=Microsoft.Web.WebView2.Wpf"
ShowTitleBar="False"
Title="Browser Window"
Width="1280"
Height="960"
MinWidth="850"
MinHeight="650"
RenderOptions.BitmapScalingMode="HighQuality"
ResizeMode="CanResize"
Style="{StaticResource {x:Type Window}}"
TitleBarHeight="25"
UseLayoutRounding="True"
2022-09-25 18:52:38 +00:00
SaveWindowPosition="True"
2022-05-20 03:23:16 +00:00
WindowTitleBrush="{StaticResource MahApps.Brushes.Accent}"
2022-05-20 04:12:16 +00:00
ContentRendered="BrowserWindow_OnActivated"
2022-05-20 03:23:16 +00:00
mc:Ignorable="d">
<Grid Background="#121212" MouseDown="UIElement_OnMouseDown">
<Grid.RowDefinitions>
2022-05-21 17:20:28 +00:00
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
2022-05-20 03:23:16 +00:00
<RowDefinition Height="*"></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
2022-05-21 17:20:28 +00:00
<ColumnDefinition Width="Auto"></ColumnDefinition>
<ColumnDefinition Width="Auto"></ColumnDefinition>
2022-05-20 03:23:16 +00:00
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
2022-05-21 17:20:28 +00:00
<TextBlock Grid.Row="0" Margin="4, 0, 0, 0" Grid.ColumnSpan="3" FontSize="16" Name="Header"></TextBlock>
2022-05-20 03:23:16 +00:00
2022-05-21 17:20:28 +00:00
<TextBlock Grid.Row="1" Grid.ColumnSpan="3" Margin="4" FontSize="20" FontWeight="Bold" Name="Instructions"></TextBlock>
<Button Grid.Row="2" Grid.Column="0" Margin="4" Name="BackButton">
2022-05-20 03:23:16 +00:00
<icon:PackIconModern Kind="NavigatePrevious"></icon:PackIconModern>
</Button>
2022-05-21 17:20:28 +00:00
<Button Grid.Row="2" Grid.Column="1" Margin="4" Name="CopyButton">
<icon:PackIconModern Kind="PageCopy"></icon:PackIconModern>
2022-05-20 03:23:16 +00:00
</Button>
2022-05-21 17:20:28 +00:00
<TextBox Grid.Row="2" Grid.Column="3" Margin="4" VerticalContentAlignment="Center" Name="AddressBar" IsEnabled="False"></TextBox>
2022-05-20 03:23:16 +00:00
2022-05-21 17:20:28 +00:00
<wpf:WebView2 Grid.Row="3" Grid.ColumnSpan="3" Name="Browser"></wpf:WebView2>
2022-05-20 03:23:16 +00:00
</Grid>
</mahapps:MetroWindow>