update
This commit is contained in:
parent
e6c09e2309
commit
b23536aa4e
1
Task.cs
1
Task.cs
@ -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);
|
||||||
|
|||||||
12
Video.xaml
12
Video.xaml
@ -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>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user