1

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?

1 Answer 1

3

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.

Sign up to request clarification or add additional context in comments.

2 Comments

Is there any replacement of Resource.Layout.Tabbar and Resource.Layout.Toolbar in MAUI?
Maui integrates all of the features you mentioned. In Maui, you can use NET MAUI Shell tabs to achieve the same effect as Tabbar . And Shell.TitleView to achieve the same effect as Toolbar.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.