Skip to content

Commit b7606e6

Browse files
authored
Feature: Updated MediaPreview to WinUI control (#10652)
1 parent f277bb4 commit b7606e6

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

src/Files.App/MainWindow.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
mc:Ignorable="d">
99

1010
<winuiex:WindowEx.Backdrop>
11-
<winuiex:MicaSystemBackdrop DarkTintOpacity="0.8" LightTintColor="#CCf3f3f3"/>
11+
<winuiex:MicaSystemBackdrop Kind="BaseAlt" DarkTintOpacity="0.8" LightTintColor="#CCf3f3f3"/>
1212
</winuiex:WindowEx.Backdrop>
1313

1414
<Grid />

src/Files.App/UserControls/FilePreviews/MediaPreview.xaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,17 @@
1717
Modifiers="Control" />
1818
</UserControl.KeyboardAccelerators>
1919
<Border CornerRadius="{StaticResource ControlCornerRadius}">
20-
<winex:MediaPlayerElement
20+
<MediaPlayerElement
2121
x:Name="PlayerContext"
2222
AreTransportControlsEnabled="True"
2323
Background="Transparent"
2424
Foreground="Transparent"
2525
Source="{x:Bind ViewModel.Source, Mode=OneWay}">
26-
<winex:MediaPlayerElement.TransportControls>
27-
<winex:MediaTransportControls
28-
IsFullWindowButtonVisible="False"
26+
<MediaPlayerElement.TransportControls>
27+
<MediaTransportControls
2928
IsPlaybackRateButtonVisible="False"
3029
IsZoomButtonVisible="False" />
31-
</winex:MediaPlayerElement.TransportControls>
32-
</winex:MediaPlayerElement>
30+
</MediaPlayerElement.TransportControls>
31+
</MediaPlayerElement>
3332
</Border>
3433
</UserControl>

0 commit comments

Comments
 (0)