Files
video-v1/vav2/platforms/windows/applications/vav2player/Vav2Player/MultiVideoPage.xaml

69 lines
2.9 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<Page
x:Class="Vav2Player.MultiVideoPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:Vav2Player"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<!-- Control panel -->
<Border Grid.Row="0" Background="{ThemeResource SystemControlBackgroundChromeMediumBrush}" Padding="10">
<StackPanel Orientation="Horizontal" Spacing="10">
<Button x:Name="LoadVideoButton"
Content="Load Video File"
Click="LoadVideoButton_Click"/>
<Button x:Name="PlayAllButton"
Content="Play All"
Click="PlayAllButton_Click"/>
<Button x:Name="PauseAllButton"
Content="Pause All"
Click="PauseAllButton_Click"/>
<Button x:Name="StopAllButton"
Content="Stop All"
Click="StopAllButton_Click"/>
<ComboBox x:Name="LayoutComboBox"
Width="150"
SelectionChanged="LayoutComboBox_SelectionChanged">
<ComboBoxItem Content="Single Video" IsSelected="True"/>
<ComboBoxItem Content="2x2 Grid"/>
<ComboBoxItem Content="1x4 Strip"/>
<ComboBoxItem Content="3x3 Grid"/>
</ComboBox>
<CheckBox x:Name="UseHardwareRenderingCheckBox"
Content="Hardware Rendering"
IsChecked="True"
VerticalAlignment="Center"
Margin="10,0,0,0"
Checked="UseHardwareRenderingCheckBox_Checked"
Unchecked="UseHardwareRenderingCheckBox_Unchecked"/>
<TextBlock x:Name="StatusDisplay"
Text="Multi Video - Ready"
VerticalAlignment="Center"
FontWeight="Bold"
Foreground="{ThemeResource SystemControlForegroundBaseHighBrush}"
Margin="20,0,0,0"/>
</StackPanel>
</Border>
<!-- Video player grid -->
<ScrollViewer Grid.Row="1" ZoomMode="Enabled" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
<Grid x:Name="VideoGrid" Background="Black">
<!-- VideoPlayerControls are added dynamically -->
</Grid>
</ScrollViewer>
</Grid>
</Page>