-
I'm having trouble with StatusBarBahavior on MAUI iOS. I've tried with iOS 17.5 and 18. My StatusBarBehavior code worked fine before updating MAUI, the MAUI tookit, and XCode. Now I get the following error message. Microsoft.Maui.Controls.Xaml.XamlParseException: 'Position 8:10. Type toolkit:StatusBarBehavior not found in xmlns http://schemas.microsoft.com/dotnet/2022/maui/toolkit' I have the following code in my XAML.
MauiProgram.cs
I've tried restarting both the mac I'm building on and the machine that runs Visual Studio. The bin and object folders were deleted and rebuilt but produced the same error. As stated previously, this was something that was working fine before I updated. Is this a bug or are there some other things I should be trying to get the app to build after the update? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Downgrading the community toolkit to 9.0.3 appears to have fixed this behavior. |
Beta Was this translation helpful? Give feedback.
-
I think it has to do with the linking step. If I disabled the Linker, it worked. Then I created an instance of the StatusBarBehavior in code to help the linker pick it up and it worked. |
Beta Was this translation helpful? Give feedback.
I think it has to do with the linking step. If I disabled the Linker, it worked. Then I created an instance of the StatusBarBehavior in code to help the linker pick it up and it worked.