Skip to content

Commit af67a5d

Browse files
committed
XAML: Use concrete class instead of abstract class for TargetType in Style
dotnet/maui#26672
1 parent a1d4b10 commit af67a5d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/LibVLCSharp/Platforms/Windows/VideoViewBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public abstract class VideoViewBase : Control, IVideoView
4141
/// </summary>
4242
public VideoViewBase()
4343
{
44-
DefaultStyleKey = typeof(VideoViewBase);
44+
DefaultStyleKey = typeof(VideoView);
4545

4646
Unloaded += (s, e) => DestroySwapChain();
4747
#if !WINUI

src/LibVLCSharp/Themes/Generic.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
44
xmlns:vlc="using:LibVLCSharp.Platforms.Windows">
55

6-
<Style TargetType="vlc:VideoViewBase">
6+
<Style TargetType="vlc:VideoView">
77
<Setter Property="Template">
88
<Setter.Value>
9-
<ControlTemplate TargetType="vlc:VideoViewBase">
9+
<ControlTemplate TargetType="vlc:VideoView">
1010
<SwapChainPanel x:Name="SwapChainPanel" />
1111
</ControlTemplate>
1212
</Setter.Value>

0 commit comments

Comments
 (0)