зеркало из https://github.com/DeGsoft/maui-linux.git
Bump reunion to stable 0.5 (#610)
* Bump reunion to stable 0.5 * - remove life cycle apis
This commit is contained in:
Родитель
529f68d12d
Коммит
e7414cb7f4
|
@ -8,7 +8,7 @@
|
|||
<_MicrosoftDependencyInjectionVersion>5.0.1</_MicrosoftDependencyInjectionVersion>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<_MicrosoftProjectReunionVersion>0.5.0-prerelease</_MicrosoftProjectReunionVersion>
|
||||
<_MicrosoftProjectReunionVersion>0.5.0</_MicrosoftProjectReunionVersion>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference
|
||||
|
|
|
@ -14,7 +14,8 @@ namespace Microsoft.Maui.Controls.Compatibility.Platform.UWP
|
|||
public ImageRenderer() : base()
|
||||
{
|
||||
ImageElementManager.Init(this);
|
||||
Microsoft.UI.Xaml.Application.Current.Resuming += OnResumingAsync;
|
||||
// TODO WINUI
|
||||
//Microsoft.UI.Xaml.Application.Current.Resuming += OnResumingAsync;
|
||||
}
|
||||
|
||||
bool IImageVisualElementRenderer.IsDisposed => _disposed;
|
||||
|
@ -45,7 +46,8 @@ namespace Microsoft.Maui.Controls.Compatibility.Platform.UWP
|
|||
{
|
||||
Control.ImageOpened -= OnImageOpened;
|
||||
Control.ImageFailed -= OnImageFailed;
|
||||
Microsoft.UI.Xaml.Application.Current.Resuming -= OnResumingAsync;
|
||||
// TODO WINUI
|
||||
//Microsoft.UI.Xaml.Application.Current.Resuming -= OnResumingAsync;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -147,7 +147,9 @@ namespace Microsoft.Maui.Controls.Compatibility.Platform.UWP
|
|||
InitializeStatusBar();
|
||||
|
||||
SystemNavigationManager.GetForCurrentView().BackRequested += OnBackRequested;
|
||||
Microsoft.UI.Xaml.Application.Current.Resuming += OnResumingAsync;
|
||||
|
||||
// TODO WINUI
|
||||
// Microsoft.UI.Xaml.Application.Current.Resuming += OnResumingAsync;
|
||||
}
|
||||
|
||||
async void OnResumingAsync(object sender, object e)
|
||||
|
|
|
@ -13,8 +13,10 @@ namespace Microsoft.Maui.Controls.Compatibility.Platform.UWP
|
|||
{
|
||||
if (!Windows.ApplicationModel.DesignMode.DesignModeEnabled)
|
||||
{
|
||||
Microsoft.UI.Xaml.Application.Current.Suspending += OnApplicationSuspending;
|
||||
Microsoft.UI.Xaml.Application.Current.Resuming += OnApplicationResuming;
|
||||
|
||||
// TODO WINUI
|
||||
// Microsoft.UI.Xaml.Application.Current.Suspending += OnApplicationSuspending;
|
||||
// Microsoft.UI.Xaml.Application.Current.Resuming += OnApplicationResuming;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -23,8 +23,8 @@ namespace Maui.Controls.Sample.WinUI3
|
|||
public App()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
Suspending += OnSuspending;
|
||||
//TODO WINUI
|
||||
//Suspending += OnSuspending;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Загрузка…
Ссылка в новой задаче