Linking all views.

This commit is contained in:
Burak Kaan Köse
2024-07-12 21:45:42 +02:00
parent 1ff82e62ff
commit ef151aa7a6
96 changed files with 930 additions and 295 deletions

View File

@@ -1,20 +0,0 @@
using System;
using System.Threading.Tasks;
using Windows.UI.Core;
using Wino.Core.Domain.Interfaces;
namespace Wino.Core.UWP
{
public class UWPDispatcher : IDispatcher
{
private readonly CoreDispatcher _coreDispatcher;
public UWPDispatcher(CoreDispatcher coreDispatcher)
{
_coreDispatcher = coreDispatcher;
}
public Task ExecuteOnUIThread(Action action)
=> _coreDispatcher.RunAsync(CoreDispatcherPriority.Normal, () => action()).AsTask();
}
}

View File

@@ -165,6 +165,7 @@ namespace Wino.Services
// Save reference as this might be null when the user is in another app
// WinUI
mainApplicationFrame = Window.Current.Content as Frame;
if (mainApplicationFrame == null) return;