From df6826cbded79ff7d6d778c88c3050f6c885360a Mon Sep 17 00:00:00 2001 From: Ken Tucker Date: Wed, 18 Jun 2025 08:40:23 -0400 Subject: [PATCH] Refactor AddChildResolver for SplitView Removed unnecessary type casts for e.Pane and e.Content in the AddChildResolver method, simplifying the code and improving type safety. --- src/Caliburn.Micro.Platform/BindingScope.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Caliburn.Micro.Platform/BindingScope.cs b/src/Caliburn.Micro.Platform/BindingScope.cs index 17e906d0..207a41e8 100644 --- a/src/Caliburn.Micro.Platform/BindingScope.cs +++ b/src/Caliburn.Micro.Platform/BindingScope.cs @@ -67,7 +67,7 @@ static BindingScope() AddChildResolver(e => new[] { e.Pane, e.Content }); #endif #if WINDOWS_UWP || WinUI3 - AddChildResolver(e => new[] { e.Pane as DependencyObject, e.Content as DependencyObject }); + AddChildResolver(e => new[] { e.Pane, e.Content }); #endif }