-
Notifications
You must be signed in to change notification settings - Fork 419
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated StatusBarBehavior to use the NavigatedTo event (#1471)
* Updated StatusBarBehavior to use the NavigatedTo event for setting the color and style and updated the Sample app. * Added fact to verify expected exception on NavigatedTo event. * Update src/CommunityToolkit.Maui.UnitTests/Behaviors/StatusBarBehaviorTests.cs It wasn't inside the if before so forgot to remove it after wrapping it :) Co-authored-by: Pedro Jesus <[email protected]> * Removed unit test I do not know how to trigger OnAttachedTo without using reflection. * Added enum StatusBarApplyOn to control when the StatusBarBehavior applies its configured color and style. * Updated sample to use the new enum --------- Co-authored-by: Mikael Nensén <[email protected]> Co-authored-by: Pedro Jesus <[email protected]> Co-authored-by: Shaun Lawrence <[email protected]>
- Loading branch information
1 parent
7611c28
commit 9d3e2fb
Showing
3 changed files
with
80 additions
and
16 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
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