|
341 | 341 | </Grid>
|
342 | 342 | <Grid
|
343 | 343 | Margin="28"
|
344 |
| - HorizontalAlignment="Left" |
| 344 | + HorizontalAlignment="Stretch" |
345 | 345 | VerticalAlignment="Top"
|
346 | 346 | Visibility="{Binding RelativeSource={RelativeSource Mode=TemplatedParent}, Path=ViewModel.IsShowMediaTransport}">
|
347 | 347 | <Grid.ColumnDefinitions>
|
348 | 348 | <ColumnDefinition Width="Auto" />
|
349 | 349 | <ColumnDefinition />
|
| 350 | + <ColumnDefinition Width="Auto" /> |
350 | 351 | </Grid.ColumnDefinitions>
|
351 | 352 | <Button
|
352 | 353 | x:Name="BackButton"
|
|
364 | 365 | <Border
|
365 | 366 | Grid.Column="1"
|
366 | 367 | Padding="8,4"
|
| 368 | + HorizontalAlignment="Left" |
367 | 369 | VerticalAlignment="Center"
|
368 | 370 | Background="#CF000000"
|
369 | 371 | CornerRadius="{StaticResource ControlCornerRadius}">
|
|
374 | 376 | Text="{TemplateBinding Title}"
|
375 | 377 | TextWrapping="Wrap" />
|
376 | 378 | </Border>
|
| 379 | + <Button |
| 380 | + x:Name="CloseButton" |
| 381 | + Grid.Column="2" |
| 382 | + Width="36" |
| 383 | + Height="36" |
| 384 | + Margin="24,0,0,0" |
| 385 | + Padding="0" |
| 386 | + HorizontalContentAlignment="Center" |
| 387 | + VerticalContentAlignment="Center" |
| 388 | + Style="{StaticResource AccentButtonStyle}" |
| 389 | + ToolTipService.ToolTip="{ext:Locale Name=Close}" |
| 390 | + Visibility="{Binding RelativeSource={RelativeSource Mode=TemplatedParent}, Path=ViewModel.IsFullScreen}"> |
| 391 | + <local:FluentIcon FontSize="16" Symbol="Dismiss" /> |
| 392 | + </Button> |
377 | 393 | </Grid>
|
378 | 394 |
|
379 | 395 | <Grid
|
|
423 | 439 | </Button>
|
424 | 440 | </StackPanel>
|
425 | 441 | </Grid>
|
| 442 | + <ProgressBar |
| 443 | + Height="3" |
| 444 | + HorizontalAlignment="Stretch" |
| 445 | + VerticalAlignment="Bottom" |
| 446 | + Background="Transparent" |
| 447 | + Maximum="{Binding RelativeSource={RelativeSource Mode=TemplatedParent}, Path=ViewModel.DurationSeconds}" |
| 448 | + Opacity="0.7" |
| 449 | + Visibility="{Binding RelativeSource={RelativeSource Mode=TemplatedParent}, Path=ViewModel.IsShowMediaTransport, Converter={StaticResource BoolToVisibilityReverseConverter}}" |
| 450 | + Value="{Binding RelativeSource={RelativeSource Mode=TemplatedParent}, Path=ViewModel.ProgressSeconds}" /> |
426 | 451 | </Grid>
|
427 | 452 | <Grid
|
428 | 453 | x:Name="PlayErrorContainer"
|
|
792 | 817 | </Grid>
|
793 | 818 | <Grid
|
794 | 819 | Margin="28"
|
795 |
| - HorizontalAlignment="Left" |
| 820 | + HorizontalAlignment="Stretch" |
796 | 821 | VerticalAlignment="Top"
|
797 | 822 | Visibility="{Binding RelativeSource={RelativeSource Mode=TemplatedParent}, Path=ViewModel.IsShowMediaTransport}">
|
798 | 823 | <Grid.ColumnDefinitions>
|
799 | 824 | <ColumnDefinition Width="Auto" />
|
800 | 825 | <ColumnDefinition />
|
| 826 | + <ColumnDefinition Width="Auto" /> |
801 | 827 | </Grid.ColumnDefinitions>
|
802 | 828 | <Button
|
803 | 829 | x:Name="BackButton"
|
|
815 | 841 | <Border
|
816 | 842 | Grid.Column="1"
|
817 | 843 | Padding="8,4"
|
| 844 | + HorizontalAlignment="Left" |
818 | 845 | VerticalAlignment="Center"
|
819 | 846 | Background="#CF000000"
|
820 | 847 | CornerRadius="{StaticResource ControlCornerRadius}">
|
|
825 | 852 | Text="{TemplateBinding Title}"
|
826 | 853 | TextWrapping="Wrap" />
|
827 | 854 | </Border>
|
| 855 | + <Button |
| 856 | + x:Name="CloseButton" |
| 857 | + Grid.Column="2" |
| 858 | + Width="36" |
| 859 | + Height="36" |
| 860 | + Margin="24,0,0,0" |
| 861 | + Padding="0" |
| 862 | + HorizontalContentAlignment="Center" |
| 863 | + VerticalContentAlignment="Center" |
| 864 | + Style="{StaticResource AccentButtonStyle}" |
| 865 | + ToolTipService.ToolTip="{ext:Locale Name=Close}" |
| 866 | + Visibility="{Binding RelativeSource={RelativeSource Mode=TemplatedParent}, Path=ViewModel.IsFullScreen}"> |
| 867 | + <local:FluentIcon FontSize="16" Symbol="Dismiss" /> |
| 868 | + </Button> |
828 | 869 | </Grid>
|
829 | 870 | <Grid
|
830 | 871 | Margin="20,12,0,0"
|
|
872 | 913 | </Button>
|
873 | 914 | </StackPanel>
|
874 | 915 | </Grid>
|
| 916 | + |
| 917 | + <ProgressBar |
| 918 | + Height="3" |
| 919 | + HorizontalAlignment="Stretch" |
| 920 | + VerticalAlignment="Bottom" |
| 921 | + Background="Transparent" |
| 922 | + Maximum="{Binding RelativeSource={RelativeSource Mode=TemplatedParent}, Path=ViewModel.DurationSeconds}" |
| 923 | + Opacity="0.7" |
| 924 | + Visibility="{Binding RelativeSource={RelativeSource Mode=TemplatedParent}, Path=ViewModel.IsShowMediaTransport, Converter={StaticResource BoolToVisibilityReverseConverter}}" |
| 925 | + Value="{Binding RelativeSource={RelativeSource Mode=TemplatedParent}, Path=ViewModel.ProgressSeconds}" /> |
875 | 926 | </Grid>
|
876 | 927 | <Grid
|
877 | 928 | x:Name="PlayErrorContainer"
|
|
0 commit comments