Projektdateien hinzufügen.
This commit is contained in:
37
VideoBrowserTestApp/Views/MainWindow.xaml
Normal file
37
VideoBrowserTestApp/Views/MainWindow.xaml
Normal 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>
|
||||
23
VideoBrowserTestApp/Views/MainWindow.xaml.cs
Normal file
23
VideoBrowserTestApp/Views/MainWindow.xaml.cs
Normal 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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user