I'm migrating my Xamarin forms code to .NET MAUI. I need the replacement of the Following code in .NET MAUI:
TabLayoutResource = Resource.Layout.Tabbar;
ToolbarResource = Resource.Layout.Toolbar;
I have no clue how to fix this. Any suggestions?
If you create a new Maui app, you will find that there are no such files(Resource.Layout.Tabbar
and Resource.Layout.Toolbar
).
For how to upgrade a Xamarin.Forms app to a .NET MAUI app, you can check documents:
Upgrade a Xamarin.Forms app to a .NET MAUI app with the .NET Upgrade Assistant ,
Manually upgrade a Xamarin.Forms app to a multi-project .NET MAUI app and
Manually upgrade a Xamarin.Forms app to a single project .NET MAUI app.