Skip to content

Commit e7414cb

Browse files
authored
Bump reunion to stable 0.5 (#610)
* Bump reunion to stable 0.5 * - remove life cycle apis
1 parent 529f68d commit e7414cb

File tree

5 files changed

+14
-8
lines changed

5 files changed

+14
-8
lines changed

eng/Microsoft.Extensions.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<_MicrosoftDependencyInjectionVersion>5.0.1</_MicrosoftDependencyInjectionVersion>
99
</PropertyGroup>
1010
<PropertyGroup>
11-
<_MicrosoftProjectReunionVersion>0.5.0-prerelease</_MicrosoftProjectReunionVersion>
11+
<_MicrosoftProjectReunionVersion>0.5.0</_MicrosoftProjectReunionVersion>
1212
</PropertyGroup>
1313
<ItemGroup>
1414
<PackageReference

src/Compatibility/Core/src/Windows/ImageRenderer.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ public class ImageRenderer : ViewRenderer<Image, Microsoft.UI.Xaml.Controls.Imag
1414
public ImageRenderer() : base()
1515
{
1616
ImageElementManager.Init(this);
17-
Microsoft.UI.Xaml.Application.Current.Resuming += OnResumingAsync;
17+
// TODO WINUI
18+
//Microsoft.UI.Xaml.Application.Current.Resuming += OnResumingAsync;
1819
}
1920

2021
bool IImageVisualElementRenderer.IsDisposed => _disposed;
@@ -45,7 +46,8 @@ protected override void Dispose(bool disposing)
4546
{
4647
Control.ImageOpened -= OnImageOpened;
4748
Control.ImageFailed -= OnImageFailed;
48-
Microsoft.UI.Xaml.Application.Current.Resuming -= OnResumingAsync;
49+
// TODO WINUI
50+
//Microsoft.UI.Xaml.Application.Current.Resuming -= OnResumingAsync;
4951
}
5052
}
5153

src/Compatibility/Core/src/Windows/Platform.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,9 @@ internal Platform(Microsoft.UI.Xaml.Window page)
147147
InitializeStatusBar();
148148

149149
SystemNavigationManager.GetForCurrentView().BackRequested += OnBackRequested;
150-
Microsoft.UI.Xaml.Application.Current.Resuming += OnResumingAsync;
150+
151+
// TODO WINUI
152+
// Microsoft.UI.Xaml.Application.Current.Resuming += OnResumingAsync;
151153
}
152154

153155
async void OnResumingAsync(object sender, object e)

src/Compatibility/Core/src/Windows/WindowsBasePage.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ public WindowsBasePage()
1313
{
1414
if (!Windows.ApplicationModel.DesignMode.DesignModeEnabled)
1515
{
16-
Microsoft.UI.Xaml.Application.Current.Suspending += OnApplicationSuspending;
17-
Microsoft.UI.Xaml.Application.Current.Resuming += OnApplicationResuming;
16+
17+
// TODO WINUI
18+
// Microsoft.UI.Xaml.Application.Current.Suspending += OnApplicationSuspending;
19+
// Microsoft.UI.Xaml.Application.Current.Resuming += OnApplicationResuming;
1820
}
1921
}
2022

src/Controls/samples/Controls.Sample.WinUI/App.xaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ public partial class App : MiddleApp
2323
public App()
2424
{
2525
InitializeComponent();
26-
27-
Suspending += OnSuspending;
26+
//TODO WINUI
27+
//Suspending += OnSuspending;
2828
}
2929

3030
/// <summary>

0 commit comments

Comments
 (0)