|
23 | 23 |
|
24 | 24 | <StackPanel DockPanel.Dock="Bottom"> |
25 | 25 | <UniformGrid Columns="1" Height="30" Visibility="{Binding HasVideoResult, Converter={StaticResource BooleanToHiddenConverter}}"> |
26 | | - <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" Margin="0,3"> |
27 | | - <TextBlock Text="Video File:" Margin="5,0,0,0" FontSize="10" Opacity=".6" VerticalAlignment="Center" FontStyle="Italic"/> |
28 | | - <TextBlock Text="{Binding VideoResult.FileName}" Margin="5,0,0,0" VerticalAlignment="Center"/> |
29 | | - </StackPanel> |
| 26 | + <DockPanel HorizontalAlignment="Left" Margin="0,3" MaxWidth="500"> |
| 27 | + <TextBlock DockPanel.Dock="Left" Text="Video File:" Margin="5,0,0,0" FontSize="10" Opacity=".6" VerticalAlignment="Center" FontStyle="Italic"/> |
| 28 | + <TextBlock Text="{Binding VideoResult.FileName, Converter={StaticResource FullPathToFileNameConverter}}" Margin="5,0,0,0" VerticalAlignment="Center" TextTrimming="CharacterEllipsis"/> |
| 29 | + </DockPanel> |
30 | 30 | </UniformGrid> |
31 | 31 | <DockPanel Height="30" IsEnabled="{Binding IsGenerating, Converter={StaticResource InverseBoolConverter}}" > |
32 | 32 | <Button DockPanel.Dock="Right" Command="{Binding ClearVideoCommand}" Width="50" IsEnabled="{Binding HasVideoResult}"> |
|
68 | 68 | </StackPanel> |
69 | 69 |
|
70 | 70 | <Grid> |
71 | | - <Image Source="{StaticResource PlaceholderImage}" Width="{Binding SchedulerOptions.Width}" Height="{Binding SchedulerOptions.Height}" /> |
72 | | - <MediaElement x:Name="VideoMediaElement" Source="{Binding VideoResult.FileName}" Width="{Binding SchedulerOptions.Width}" Height="{Binding SchedulerOptions.Height}" MinHeight="512" MinWidth="512" ClipToBounds="True" LoadedBehavior="Manual" Loaded="MediaElement_Loaded" MediaEnded="MediaElement_MediaEnded" Volume="0" MouseLeftButtonDown="MediaElement_MouseDown" /> |
73 | | - <Image Source="{Binding PreviewImage}" Width="{Binding SchedulerOptions.Width}" Height="{Binding SchedulerOptions.Height}" /> |
| 71 | + <Image Source="{StaticResource PlaceholderImage}" Width="{Binding SchedulerOptions.Width}" Height="{Binding SchedulerOptions.Height}" Visibility="{Binding IsPreviewVisible, Converter={StaticResource InverseBooleanToHiddenConverter}}"/> |
| 72 | + <MediaElement x:Name="VideoMediaElement" Source="{Binding VideoResult.FileName}" Width="{Binding SchedulerOptions.Width}" Height="{Binding SchedulerOptions.Height}" MinHeight="512" MinWidth="512" ClipToBounds="True" LoadedBehavior="Manual" Loaded="MediaElement_Loaded" MediaEnded="MediaElement_MediaEnded" Volume="0" MouseLeftButtonDown="MediaElement_MouseDown" Visibility="{Binding IsPreviewVisible, Converter={StaticResource InverseBooleanToHiddenConverter}}" /> |
| 73 | + <Image Source="{Binding PreviewImage}" Width="{Binding SchedulerOptions.Width}" Height="{Binding SchedulerOptions.Height}" Stretch="Uniform" HorizontalAlignment="Center" /> |
74 | 74 | </Grid> |
75 | 75 |
|
76 | 76 | </DockPanel> |
|
0 commit comments