Linking all views.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user