Skip to content

Commit

Permalink
Bumt to latest
Browse files Browse the repository at this point in the history
- Effects (dotnet#1574)
- Improve Window and AnimationManager (dotnet#1653)
- and so on
  • Loading branch information
rookiejava authored and myroot committed Aug 24, 2022
1 parent 1b6d4de commit 7efbd82
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Core/src/Platform/Tizen/HandlerExtensions.cs
Expand Up @@ -6,7 +6,7 @@ namespace Microsoft.Maui
{
public static class HandlerExtensions
{
public static EvasObject ToNative(this IView view, IMauiContext context)
public static EvasObject ToNative(this IElement view, IMauiContext context)
{
_ = view ?? throw new ArgumentNullException(nameof(view));
_ = context ?? throw new ArgumentNullException(nameof(context));
Expand Down Expand Up @@ -44,12 +44,12 @@ public static void SetWindow(this Window nativeWindow, IWindow window, IMauiCont
_ = window ?? throw new ArgumentNullException(nameof(window));
_ = mauiContext ?? throw new ArgumentNullException(nameof(mauiContext));

var handler = window.Handler as IWindowHandler;
var handler = window.Handler;
if (handler == null)
handler = mauiContext.Handlers.GetHandler(window.GetType()) as IWindowHandler;
handler = mauiContext.Handlers.GetHandler(window.GetType());

if (handler == null)
throw new Exception($"Handler not found for view {window} or was not {nameof(IWindowHandler)}'");
throw new Exception($"Handler not found for view {window}.");

handler.SetMauiContext(mauiContext);

Expand Down

0 comments on commit 7efbd82

Please sign in to comment.