Projektdateien hinzufügen.

This commit is contained in:
Kevin Krüger
2023-07-24 12:00:34 +02:00
parent 656751e10b
commit 0d00a90942
210 changed files with 45049 additions and 0 deletions

View File

@@ -0,0 +1,104 @@
<Controls:MetroWindow
x:Class="VideoBrowser.Views.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:Controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
xmlns:browserViews="clr-namespace:VideoBrowser.Controls.CefSharpBrowser.Views"
xmlns:converters="clr-namespace:VideoBrowser.Converters"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:extension="clr-namespace:VideoBrowser.Extensions"
xmlns:helpers="clr-namespace:VideoBrowser.Helpers"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
xmlns:viewmodels="clr-namespace:VideoBrowser.ViewModels"
xmlns:views="clr-namespace:VideoBrowser.Views"
Title="{Binding Title}"
Width="800"
Height="450"
d:DataContext="{d:DesignInstance viewmodels:MainWindowViewModel}"
Closing="{extension:EventBinding ClosingCommand,
CommandParameter={Binding RelativeSource={RelativeSource Self}}}"
GlowBrush="{DynamicResource AccentColorBrush}"
Loaded="{extension:EventBinding LoadedCommand,
CommandParameter={Binding RelativeSource={RelativeSource Self}}}"
mc:Ignorable="d">
<Controls:MetroWindow.Resources>
<helpers:BindingProxy x:Key="MainWindowViewModelProxy" DataContext="{Binding}" />
<converters:MultiplyConverter x:Key="MultiplyConverter" />
</Controls:MetroWindow.Resources>
<Controls:MetroWindow.InputBindings>
<KeyBinding Key="Esc" Command="{Binding PressEscCommand}" />
<KeyBinding Key="F2" Command="{Binding PressF2Command}" />
</Controls:MetroWindow.InputBindings>
<Grid Background="WhiteSmoke">
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<browserViews:WebBrowserTabControlView
x:Name="WebBrowserTabControlView"
Grid.Row="0"
DataContext="{Binding WebBrowserTabControlViewModel}" />
<Grid
x:Name="FlyoverPlacementGrid"
Grid.Row="1"
DataContext="{Binding DownloadFlyoutViewModel}">
<Grid.Height>
<MultiBinding Converter="{StaticResource MultiplyConverter}">
<Binding ElementName="DownloadFlyoutsControl" Path="ActualHeight" />
<Binding Path="Tag" RelativeSource="{RelativeSource Self}" />
</MultiBinding>
</Grid.Height>
<Grid.Style>
<Style TargetType="Grid">
<Setter Property="Tag">
<Setter.Value>
<sys:Double>0.0</sys:Double>
</Setter.Value>
</Setter>
<Style.Triggers>
<DataTrigger Binding="{Binding IsOpen}" Value="True">
<DataTrigger.EnterActions>
<BeginStoryboard>
<Storyboard>
<DoubleAnimation
AutoReverse="False"
Storyboard.TargetProperty="Tag"
To="1"
Duration="0:0:0.300" />
</Storyboard>
</BeginStoryboard>
</DataTrigger.EnterActions>
<DataTrigger.ExitActions>
<BeginStoryboard>
<Storyboard>
<DoubleAnimation
AutoReverse="False"
Storyboard.TargetProperty="Tag"
To="0"
Duration="0:0:0.300" />
</Storyboard>
</BeginStoryboard>
</DataTrigger.ExitActions>
</DataTrigger>
</Style.Triggers>
</Style>
</Grid.Style>
</Grid>
</Grid>
<Controls:MetroWindow.Flyouts>
<Controls:FlyoutsControl>
<Controls:Flyout
x:Name="AutoCloseFlyout"
AutoCloseInterval="10000"
CloseButtonVisibility="Collapsed"
DataContext="{Binding DownloadFlyoutViewModel}"
Header="Downloads"
IsAutoCloseEnabled="True"
IsOpen="{Binding IsOpen}"
Position="Bottom">
<views:DownloadFlyoutView x:Name="DownloadFlyoutsControl" />
</Controls:Flyout>
</Controls:FlyoutsControl>
</Controls:MetroWindow.Flyouts>
</Controls:MetroWindow>