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,37 @@
<mah:MetroWindow
x:Class="VideoBrowserTestApp.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:extension="clr-namespace:VideoBrowser.Extensions;assembly=VideoBrowser"
xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:viewmodels="clr-namespace:VideoBrowserTestApp.ViewModels"
x:Name="Window"
Title="VideoBrowserTestApp"
d:DataContext="{d:DesignInstance viewmodels:MainWindowViewModel}"
Closed="{extension:EventBinding Command={Binding ClosedCommand}}"
Loaded="{extension:EventBinding Command={Binding LoadedCommand},
CommandParameter={Binding RelativeSource={RelativeSource Self}}}"
SizeToContent="WidthAndHeight"
mc:Ignorable="d">
<Grid>
<ItemsControl ItemsSource="{Binding Tests}">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel />
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
<DataTemplate>
<Button
Width="200"
Margin="4"
Command="{Binding TestCommand}"
CommandParameter="{Binding ElementName=Window}"
Content="{Binding Name}" />
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</Grid>
</mah:MetroWindow>

View File

@@ -0,0 +1,23 @@
namespace VideoBrowserTestApp
{
using VideoBrowserTestApp.ViewModels;
/// <summary>
/// Interaction logic for MainWindow.xaml.
/// </summary>
public partial class MainWindow
{
#region Constructors
/// <summary>
/// Initializes a new instance of the <see cref="MainWindow"/> class.
/// </summary>
public MainWindow()
{
this.InitializeComponent();
this.DataContext = new MainWindowViewModel();
}
#endregion Constructors
}
}