mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
71 lines
3.5 KiB
XML
71 lines
3.5 KiB
XML
<UserControl x:Class="Wabbajack.WebBrowserView"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
|
|
xmlns:wabbajack="clr-namespace:Wabbajack"
|
|
mc:Ignorable="d"
|
|
d:DesignHeight="450" d:DesignWidth="800">
|
|
<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>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="47" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<wabbajack:TopProgressView
|
|
Title="{Binding Instructions}"
|
|
Grid.Row="0"
|
|
Grid.RowSpan="2"
|
|
ShadowMargin="False" />
|
|
<Button
|
|
x:Name="BackButton"
|
|
Grid.Row="0"
|
|
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}"></ContentControl>
|
|
</Grid>
|
|
</UserControl>
|