mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
71 lines
3.4 KiB
Plaintext
71 lines
3.4 KiB
Plaintext
|
<UserControl
|
||
|
x:Class="Wabbajack.WebBrowserView"
|
||
|
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:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
|
||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||
|
xmlns:wabbajack="clr-namespace:Wabbajack"
|
||
|
d:DesignHeight="450"
|
||
|
d:DesignWidth="800"
|
||
|
mc:Ignorable="d">
|
||
|
<UserControl.Resources>
|
||
|
<Color x:Key="TextBackgroundFill">#92000000</Color>
|
||
|
<SolidColorBrush x:Key="TextBackgroundFillBrush" Color="{StaticResource TextBackgroundFill}" />
|
||
|
<Color x:Key="TextBackgroundHoverFill">#DF000000</Color>
|
||
|
<Style x:Key="BackgroundBlurStyle" TargetType="TextBlock">
|
||
|
<Setter Property="Background" Value="{StaticResource TextBackgroundFillBrush}" />
|
||
|
<Setter Property="Foreground" Value="Transparent" />
|
||
|
<Setter Property="Visibility" Value="Visible" />
|
||
|
<Style.Triggers>
|
||
|
<DataTrigger Binding="{Binding IsMouseOver, RelativeSource={RelativeSource AncestorType={x:Type Button}}}" Value="True">
|
||
|
<DataTrigger.EnterActions>
|
||
|
<BeginStoryboard>
|
||
|
<Storyboard>
|
||
|
<ColorAnimation
|
||
|
Storyboard.TargetProperty="(TextBlock.Background).(SolidColorBrush.Color)"
|
||
|
To="{StaticResource TextBackgroundHoverFill}"
|
||
|
Duration="0:0:0.06" />
|
||
|
</Storyboard>
|
||
|
</BeginStoryboard>
|
||
|
</DataTrigger.EnterActions>
|
||
|
<DataTrigger.ExitActions>
|
||
|
<BeginStoryboard>
|
||
|
<Storyboard>
|
||
|
<ColorAnimation
|
||
|
Storyboard.TargetProperty="(TextBlock.Background).(SolidColorBrush.Color)"
|
||
|
To="{StaticResource TextBackgroundFill}"
|
||
|
Duration="0:0:0.06" />
|
||
|
</Storyboard>
|
||
|
</BeginStoryboard>
|
||
|
</DataTrigger.ExitActions>
|
||
|
</DataTrigger>
|
||
|
</Style.Triggers>
|
||
|
</Style>
|
||
|
</UserControl.Resources>
|
||
|
<Grid Background="White">
|
||
|
<Grid.RowDefinitions>
|
||
|
<RowDefinition Height="47" />
|
||
|
<RowDefinition Height="*" />
|
||
|
</Grid.RowDefinitions>
|
||
|
<wabbajack:TopProgressView Grid.Row="0" Grid.RowSpan="1"
|
||
|
Title="{Binding Instructions}"
|
||
|
Background="#92000000"
|
||
|
ShadowMargin="False" />
|
||
|
<Button Grid.Row="0"
|
||
|
x:Name="BackButton"
|
||
|
Width="30"
|
||
|
Height="30"
|
||
|
Margin="7,5,0,0"
|
||
|
HorizontalAlignment="Left"
|
||
|
VerticalAlignment="Top"
|
||
|
Command="{Binding BackCommand}"
|
||
|
Style="{StaticResource IconCircleButtonStyle}"
|
||
|
ToolTip="Back to main menu">
|
||
|
<iconPacks:PackIconMaterial Foreground="{Binding Foreground, RelativeSource={RelativeSource AncestorType={x:Type Button}}}" Kind="ArrowLeft" />
|
||
|
</Button>
|
||
|
<!-- Do it this way so we can access the browser directly from the VM -->
|
||
|
<ContentControl Grid.Row="1" Content="{Binding Browser}" />
|
||
|
</Grid>
|
||
|
</UserControl>
|