Skip to content

Commit

Permalink
chore: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiaoy312 committed Dec 6, 2023
1 parent ddfa70d commit 5687074
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Uno.Toolkit.UI/Helpers/ResponsiveHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
using System.Collections.Generic;
using Windows.Foundation;
using Uno.Disposables;

#if IS_WINUI
using Microsoft.UI.Xaml;
#else
Expand Down
3 changes: 2 additions & 1 deletion src/Uno.Toolkit.UI/Markup/ResponsiveExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#endif

using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Extensions.Logging;
using Windows.Foundation;
Expand Down Expand Up @@ -190,6 +189,8 @@ public void OnSizeChanged(Size size, ResponsiveLayout layout)

internal ResponsiveLayout? GetAppliedLayout() =>
Layout ??
#if SUPPORTS_XAML_SERVICE_PROVIDER
(TargetWeakRef?.Target as FrameworkElement)?.ResolveLocalResource<ResponsiveLayout>(ResponsiveLayout.DefaultResourceKey) ??
#endif
Application.Current.ResolveLocalResource<ResponsiveLayout>(ResponsiveLayout.DefaultResourceKey);
}

0 comments on commit 5687074

Please sign in to comment.