|
Some checks failed
CI / build-and-test (push) Failing after 28s
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. |
||
|---|---|---|
| .. | ||
| AboutDialog.xaml | ||
| AboutDialog.xaml.cs | ||
| HelpDialog.xaml | ||
| HelpDialog.xaml.cs | ||
| MainWindow.xaml | ||
| MainWindow.xaml.cs | ||
| OnboardingDialog.xaml | ||
| OnboardingDialog.xaml.cs | ||
| SettingsDrawer.xaml | ||
| SettingsDrawer.xaml.cs | ||