lepoco / wpfui

WPF UI provides the Fluent experience in your known and loved WPF framework. Intuitive design, themes, navigation and new immersive controls. All natively and effortlessly.
https://wpfui.lepo.co
MIT License
7.67k stars 748 forks source link

NavigationView crash #797

Open Porterbg opened 1 year ago

Porterbg commented 1 year ago

Describe the bug

System.Windows.Markup.XamlParseException: ''Set property 'System.Windows.Media.SolidColorBrush.Color' threw an exception.' Line number '200' and line position '26'.' InvalidOperationException: '#0F000000' is not a valid value for property 'Color'.

To Reproduce

Start sample app In the auto suggest type and select NavigationView Note: It will not crash if you manually go to Navigation->NavigationView from navigation pane Also crashes in apps using preview 8 and does not crash when using preview 7

Expected behavior

Should not crash

Screenshots

No response

OS version

Windows 10

.NET version

.net 6

WPF-UI NuGet version

3.0.0-preview.8

Additional context

No response

wfjsw commented 1 year ago

aff99851

https://github.com/lepoco/wpfui/blob/a58feed8d00f230a95f647cb14054818a8ca4a6d/src/Wpf.Ui/Controls/NavigationView/NavigationViewTop.xaml#L200

niels9001 commented 11 months ago

PR to fix this issue: https://github.com/lepoco/wpfui/pull/839