From 44e377512ce2d4aedd1d8bc7876d2864a4e3df2e Mon Sep 17 00:00:00 2001 From: Martin Finkel Date: Tue, 14 Jan 2025 13:40:58 +0700 Subject: [PATCH 1/3] XAML: Use concrete class instead of abstract class for TargetType in Style https://github.com/dotnet/maui/issues/26672 --- src/LibVLCSharp/Platforms/Windows/VideoViewBase.cs | 2 +- src/LibVLCSharp/Themes/Generic.xaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/LibVLCSharp/Platforms/Windows/VideoViewBase.cs b/src/LibVLCSharp/Platforms/Windows/VideoViewBase.cs index 282b19ddd..6f6eb136c 100644 --- a/src/LibVLCSharp/Platforms/Windows/VideoViewBase.cs +++ b/src/LibVLCSharp/Platforms/Windows/VideoViewBase.cs @@ -40,7 +40,7 @@ public abstract class VideoViewBase : Control, IVideoView /// public VideoViewBase() { - DefaultStyleKey = typeof(VideoViewBase); + DefaultStyleKey = typeof(VideoView); Unloaded += (s, e) => DestroySwapChain(); #if !WINUI diff --git a/src/LibVLCSharp/Themes/Generic.xaml b/src/LibVLCSharp/Themes/Generic.xaml index 7c1356034..1867e07ac 100644 --- a/src/LibVLCSharp/Themes/Generic.xaml +++ b/src/LibVLCSharp/Themes/Generic.xaml @@ -3,10 +3,10 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:vlc="using:LibVLCSharp.Platforms.Windows"> -