This commit is contained in:
xiang 2024-10-27 20:43:38 +08:00
parent e6c09e2309
commit b23536aa4e
2 changed files with 9 additions and 4 deletions

View File

@ -19,6 +19,7 @@ namespace VideoConcat
progressBar.Dispatcher.Invoke(() => progressBar.Dispatcher.Invoke(() =>
{ {
progressBar.Value = i; progressBar.Value = i;
}); });
}); });
System.Threading.Thread.Sleep(50); System.Threading.Thread.Sleep(50);

View File

@ -9,10 +9,14 @@
mc:Ignorable="d" mc:Ignorable="d"
Title="视频" Height="450" Width="800" WindowStartupLocation="CenterScreen" ResizeMode="NoResize" > Title="视频" Height="450" Width="800" WindowStartupLocation="CenterScreen" ResizeMode="NoResize" >
<Grid> <Grid>
<StackPanel> <StackPanel Margin="10" >
<Button Content="开始拼接" VerticalAlignment="Top" Height="30" Click="Button_Click" x:Name="startButton" Margin="5"/> <StackPanel Height="30" Margin="2" Orientation="Horizontal" HorizontalAlignment="Left" >
<TextBlock Margin="5" TextWrapping="Wrap" Text="" Height="auto" x:Name="outputTxt"/> <Label Content="生成视频的个数:" VerticalContentAlignment="Center" Width="auto" BorderBrush="#0000EE" BorderThickness="1"></Label>
<TextBox Width="580" AutomationProperties.HelpText="输入要生成的视频个数" Margin="10,0,10,0" InputScope="Number"></TextBox>
<Button Content="开始拼接" Click="Button_Click" x:Name="startButton" Width="auto"/>
</StackPanel>
<TextBox Margin="2" TextWrapping="Wrap" Text="" Height="auto" x:Name="outputTxt"/>
</StackPanel> </StackPanel>
<ProgressBar x:Name="processVideoBar" Minimum="0" Maximum="100" Value="0" VerticalAlignment="Bottom" Height="10" Margin="5"/> <ProgressBar x:Name="processVideoBar" Minimum="0" Maximum="100" Value="0" VerticalAlignment="Bottom" Height="10" Margin="5"/>
</Grid> </Grid>
</Window> </Window>