Unplanned
Last Updated: 10 Feb 2025 09:39 by Thomas
Thomas
Created on: 10 Feb 2025 09:39
Category: ComboBox
Type: Bug Report
0
ComboBox: [WinUI] Crashes when using RelayComamnd to navigate back to another page in a .NET 9 project

When adding a ComboBox in a page and navigating back from this page to another page, the app crashes. 


PlatformView cannot be null here
StackTrace = "   at Microsoft.Maui.Handlers.ViewHandler`2.get_PlatformView()\r\n   at Telerik.Maui.Handlers.RadBorderHandler.MapBackgroundColor(RadBorderHandler handler, IRadBorder border)\r\n   at Microsoft.Maui.PropertyMapper`2.<>c__DisplayClass5_0.<Add>b__0(IElementH...

Workaround: 

If I wrap that command call in an ICommand then no issues.

0 comments