How to use TabLayoutResource and ToolbarResource in .net MAUI?

436 Views Asked by At

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

There are 1 best solutions below

2
Jessie Zhang -MSFT On BEST ANSWER

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.