-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAppShell.xaml.cs
More file actions
25 lines (23 loc) · 878 Bytes
/
AppShell.xaml.cs
File metadata and controls
25 lines (23 loc) · 878 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using System.Diagnostics;
namespace ShellTestMAUI9
{
public partial class AppShell : Shell
{
public AppShell()
{
InitializeComponent();
Routing.RegisterRoute(nameof(SecondPage3), typeof(SecondPage3));
Routing.RegisterRoute(nameof(SecondPage5), typeof(SecondPage5));
Routing.RegisterRoute(nameof(SecondPage6), typeof(SecondPage6));
}
protected override void OnNavigating(ShellNavigatingEventArgs args)
{
base.OnNavigating(args);
Debug.WriteLine($"OnNavigating works fine.");
if (args == null || args.Current == null || args.Target == null)
return;
Debug.WriteLine($"Coming from : {args.Current.Location.ToString()}");
Debug.WriteLine($"Going to : {args.Target.Location.ToString()}");
}
}
}