Application shell & navigation
The navigation shell from Module 3 · Application Shell & Navigation, as the walkthrough video builds it:
a header, a left navigation menu, a content panel and a status bar, all docked. Every nav button calls one
shared NavigateTo(), which swaps a UserControl view into the content panel, updates the breadcrumb and
writes the status bar. Settings is view-only for a Support Agent.
Run it
cd "LearnWisej-Samples/Foundations Course/Module 3/WisejTrainingApp"
dotnet run -f net10.0 --urls http://localhost:5083
Then open http://localhost:5083. (Visual Studio: open WisejTrainingApp.slnx, press F5.)
What to try
| Action | What you should see |
|---|---|
| Click Dashboard, Tickets, Customers | the content area swaps to that view, the breadcrumb reads Home / Tickets, the status bar reads hh:mm:ss PM - Opened Tickets page. |
| Click Settings | the Settings view opens with Save disabled and View only — a Support Agent cannot save settings. |
The shell
| Region | Control | Dock |
|---|---|---|
| Header — ServiceDesk Application, breadcrumb, signed-in user | pnlHeader (lblAppTitle, lblBreadcrumb, lblUser) | Top |
| Navigation | pnlNav (btnDashboard, btnTickets, btnCustomers, btnSettings) | Left |
| Content — the current view | pnlContent | Fill |
| Status bar | lblStatus | Bottom |
Where things live
| File | What it's for |
|---|---|
Program.cs | Startup — sets Application.MainPage = new MainPage() |
MainPage.cs | The shell: the four nav handlers, NavigateTo(), ApplyPermissions() |
Views/DashboardView.cs, TicketsView.cs, CustomersView.cs | The three plain views |
Views/SettingsView.cs | Takes the current role; disables Save for a Support Agent |
*.Designer.cs | Generated by the Designer — don't edit by hand |