Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added pending lifecycle events (#7225)
- Loading branch information
1 parent
820c03a
commit a6c12a1
Showing
7 changed files
with
55 additions
and
10 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
using System; | ||
using Microsoft.Maui.Controls; | ||
|
||
namespace Maui.Controls.Sample | ||
{ | ||
public class MauiWindow : Window | ||
{ | ||
public MauiWindow() : base() { } | ||
public MauiWindow(Page page) : base(page) { } | ||
|
||
protected override void OnCreated() | ||
{ | ||
Console.WriteLine("OnCreated"); | ||
base.OnCreated(); | ||
} | ||
|
||
protected override void OnStopped() | ||
{ | ||
Console.WriteLine("OnStopped"); | ||
base.OnStopped(); | ||
} | ||
|
||
protected override void OnResumed() | ||
{ | ||
Console.WriteLine("OnResumed"); | ||
base.OnResumed(); | ||
} | ||
|
||
protected override void OnDestroying() | ||
{ | ||
Console.WriteLine("OnDestroying"); | ||
base.OnDestroying(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
src/Core/src/Hosting/LifecycleEvents/AppHostBuilderExtensions.Windows.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters