2
0
Files
maui-linux-samples/ShellDemo/AppShell.xaml.cs

26 lines
653 B
C#
Raw Normal View History

2026-01-11 12:33:48 -05:00
// AppShell - Shell navigation with flyout menu
2026-01-24 03:17:48 +00:00
using System.Reflection;
2026-01-11 12:33:48 -05:00
using Microsoft.Maui.Controls;
namespace ShellDemo;
public partial class AppShell : Shell
{
2026-01-24 03:17:48 +00:00
public string AppVersion { get; }
2026-01-11 12:33:48 -05:00
public AppShell()
{
2026-01-24 03:17:48 +00:00
// Get app version from assembly
var version = Assembly.GetExecutingAssembly().GetName().Version;
AppVersion = $"OpenMaui v{version?.Major ?? 1}.{version?.Minor ?? 0}.{version?.Build ?? 0}";
BindingContext = this;
2026-01-11 12:33:48 -05:00
InitializeComponent();
// Register routes for push navigation (pages not in flyout)
Routing.RegisterRoute("detail", typeof(DetailPage));
}
}