/
githubmirror
/
Files
Обзор
Документация
Войти
/
githubmirror
/
Files
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Files.App/UserControls/FilePreviews/MediaPreview.xaml
38 строк
1 KB
Yair
Code Quality: Updated license header
31 дек 2024, 05:03
31 дек 2024, 05:03
8436c6d
Код
Авторство
О чём код?
<!-- Copyright (c) Files Community. Licensed under the MIT License. --> <UserControl x:Class="Files.App.UserControls.FilePreviews.MediaPreview" 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:local="using:Files.App.UserControls.FilePreviews" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" d:DesignHeight="300" d:DesignWidth="400" Unloaded="{x:Bind ViewModel.PreviewControlBase_Unloaded}" mc:Ignorable="d"> <UserControl.KeyboardAccelerators> <KeyboardAccelerator Key="Space" Invoked="TogglePlaybackAcceleratorInvoked" Modifiers="Menu" /> </UserControl.KeyboardAccelerators> <Border CornerRadius="{StaticResource ControlCornerRadius}"> <MediaPlayerElement x:Name="PlayerContext" AreTransportControlsEnabled="True" Background="Transparent" Foreground="Transparent" Source="{x:Bind ViewModel.Source, Mode=OneWay}"> <MediaPlayerElement.TransportControls> <MediaTransportControls IsCompact="True" IsPlaybackRateButtonVisible="False" IsZoomButtonVisible="False" /> </MediaPlayerElement.TransportControls> </MediaPlayerElement> </Border> </UserControl>