-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update DisplayAlert method calls to use first window's page
Updated the `DisplayAlert` method calls in `Switch_OnToggled` and `Toggled` methods across several files to use `Application.Current!.Windows[0].Page!` instead of `Application.Current!.MainPage!`. This change ensures alerts are displayed on the first window's page, accommodating scenarios with multiple windows or when the main page is not active. Affected files: `CustomSwitchPage.xaml.cs`, `PanGestureTestPage.xaml.cs`, `SwitchViewPage.xaml.cs`, and `SwitchViewModel.cs`.
- Loading branch information
1 parent
5a47f85
commit 7b98a33
Showing
4 changed files
with
4 additions
and
4 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
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