teamsiso/src/TeamsISO.App.WinUI/Views
Zac Gaetano 27f47401d9
Some checks failed
CI / build-and-test (push) Failing after 28s
build(winui3): keep SettingsDrawer host deferred + narrow the suspect
Tried re-hosting SettingsDrawer with `Visibility="Collapsed"` (no
RenderTransform / Storyboard this time). Still crashes the XAML parser
at startup with the same HR 0x802b000a.

Narrows the suspect: the crash is inside SettingsDrawer.xaml's
InitializeComponent, not in MainWindow.xaml's hosting of it. Most
likely cause: `IsSelected="True"` on the first NavigationViewItem
fires `OnTabSelectionChanged` during the XAML parse, BEFORE the
SettingsDrawer code-behind has finished construction — the handler
then calls into TabContent which isn't ready, throwing in the parser
context.

Two fixes to try next session:

1. Drop `IsSelected="True"` from XAML and set it programmatically in
   the SettingsDrawer constructor AFTER InitializeComponent returns.
2. Verify the OnTabSelectionChanged signature for WinUI 3 1.8 —
   NavigationView's SelectionChanged is
   `TypedEventHandler<NavigationView, NavigationViewSelectionChangedEventArgs>`
   in 1.8 (might be different from the 1.6 SDK signature I wrote
   against).

For now, the MainWindow's OnSettingsClick is a no-op stub. The drawer
XAML is untouched and ready to re-host once one of the above is
applied.

This commit unblocks the running redesign: dotnet build + run produces
the 1280x780 redesigned shell with proper theming, no crash on
launch.
2026-05-13 00:48:03 -04:00
..
AboutDialog.xaml feat(winui3): ThemeManager service + Settings drawer + Help/About/Onboarding 2026-05-13 00:13:58 -04:00
AboutDialog.xaml.cs feat(winui3): ThemeManager service + Settings drawer + Help/About/Onboarding 2026-05-13 00:13:58 -04:00
HelpDialog.xaml feat(winui3): ThemeManager service + Settings drawer + Help/About/Onboarding 2026-05-13 00:13:58 -04:00
HelpDialog.xaml.cs feat(winui3): ThemeManager service + Settings drawer + Help/About/Onboarding 2026-05-13 00:13:58 -04:00
MainWindow.xaml build(winui3): keep SettingsDrawer host deferred + narrow the suspect 2026-05-13 00:48:03 -04:00
MainWindow.xaml.cs build(winui3): keep SettingsDrawer host deferred + narrow the suspect 2026-05-13 00:48:03 -04:00
OnboardingDialog.xaml feat(winui3): ThemeManager service + Settings drawer + Help/About/Onboarding 2026-05-13 00:13:58 -04:00
OnboardingDialog.xaml.cs feat(winui3): ThemeManager service + Settings drawer + Help/About/Onboarding 2026-05-13 00:13:58 -04:00
SettingsDrawer.xaml feat(winui3): ThemeManager service + Settings drawer + Help/About/Onboarding 2026-05-13 00:13:58 -04:00
SettingsDrawer.xaml.cs feat(winui3): ThemeManager service + Settings drawer + Help/About/Onboarding 2026-05-13 00:13:58 -04:00