12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <Window x:Class="ReadVideoDemo.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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:local="clr-namespace:ReadVideoDemo"
- mc:Ignorable="d"
- Title="MainWindow" Height="450" Width="1200" Closing="OnWindowClosing">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="*"/>
- <RowDefinition Height="40"/>
- </Grid.RowDefinitions>
-
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*"/>
- <ColumnDefinition Width="*"/>
- </Grid.ColumnDefinitions>
- <Grid Grid.Row="0" Grid.Column="0">
- <Image x:Name="TestImage1"/>
- </Grid>
- <Grid Grid.Row="0" Grid.Column="1">
- <Image x:Name="TestImage2"/>
- </Grid>
-
- <Grid Grid.Row="1" Grid.Column="0">
- <StackPanel Orientation="Horizontal">
- <Button Content="加载视频" FontSize="12" Margin="4,4,4,4" Width="100" Click="OnLoadVideo1Click"/>
- <Button Content="加载图片" FontSize="12" Margin="4,4,4,4" Width="100" Click="OnLoadImagesClick"/>
- <Button Content="解冻" FontSize="12" Margin="4,4,4,4" Width="100" Click="OnUnfreezeClick"/>
- <ProgressBar x:Name ="VideoProgressBar1" Width="120" Margin="4,8,4,8"/>
- <Button Content="停止" FontSize="12" Margin="4,4,4,4" Width="80" Click="OnStopReading1Click"/>
- <TextBlock x:Name="StatusText1" Width="80" Margin="4,4,4,4" VerticalAlignment="Center"/>
- </StackPanel>
- </Grid>
- <Grid Grid.Row="1" Grid.Column="1">
- <StackPanel Orientation="Horizontal">
- <Button Content="加载视频" FontSize="12" Margin="4,4,4,4" Width="100" Click="OnLoadVideo2Click"/>
- <ProgressBar x:Name ="VideoProgressBar2" Width="120" Margin="4,8,4,8"/>
- <Button Content="停止" FontSize="12" Margin="4,4,4,4" Width="80" Click="OnStopReading2Click"/>
- <TextBlock x:Name="StatusText2" Width="80" Margin="4,4,4,4" VerticalAlignment="Center"/>
- </StackPanel>
- </Grid>
- </Grid>
- </Window>
|