-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: updating for modern C# syntax
- Loading branch information
Showing
10 changed files
with
65 additions
and
38 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,7 +1,17 @@ | ||
namespace Prism.AppModel; | ||
|
||
/// <summary> | ||
/// Interface that defines lifecycle events for pages. | ||
/// </summary> | ||
public interface IPageLifecycleAware | ||
{ | ||
/// <summary> | ||
/// Called when the page is appearing. | ||
/// </summary> | ||
void OnAppearing(); | ||
|
||
/// <summary> | ||
/// Called when the page is disappearing. | ||
/// </summary> | ||
void OnDisappearing(); | ||
} |
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
3 changes: 3 additions & 0 deletions
3
src/Maui/Prism.Maui/Behaviors/TabbedPageActiveAwareBehavior.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
namespace Prism.Behaviors; | ||
|
||
/// <summary> | ||
/// Provides <see cref="IActiveAware"/> support for the children of the <see cref="TabbedPage"/> | ||
/// </summary> | ||
public class TabbedPageActiveAwareBehavior : MultiPageActiveAwareBehavior<Page> | ||
{ | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,18 @@ | ||
| ||
namespace Prism.Dialogs; | ||
|
||
/// <summary> | ||
/// Provides well-known parameter names used for configuring dialogs. | ||
/// </summary> | ||
public static class KnownDialogParameters | ||
{ | ||
/// <summary> | ||
/// Parameter name used to control whether a dialog should close when the background is tapped. | ||
/// </summary> | ||
public const string CloseOnBackgroundTapped = "closeOnBackgroundTapped"; | ||
|
||
/// <summary> | ||
/// Parameter name used to pass additional custom parameters to a dialog. | ||
/// </summary> | ||
public const string XamlParam = "xamlParam"; | ||
} |
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