37 lines
1.7 KiB
XML
37 lines
1.7 KiB
XML
<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> |