Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.
Brandon Minnick edited this page Sep 22, 2021 · 3 revisions

.NET MAUI Support

This repo (xamarin/xamarincommunitytoolkit), and its associated NuGet Packages (Xamarin.CommunityToolkit and Xamarin.CommunityToolkit.Markup) will remain focused on Xamarin.Forms.

We have created two ways to use the Community Toolkit with .NET MAUI:

Support Timeline

Xamarin.CommunityToolkit will follow a similar support timeline as Xamarin.Forms

Going forward, we recommend everyone use the new .NET MAUI Community Toolkit

Maintenance Support

We will continue to actively fix bugs thru November 2022

New Features / Enhancements

We will continue to accept new features & enahancements until .NET 6 Preview 5 is released. After which, we will continue to maintenance support (bug fixes) while focusing the majority of our time on the next community toolkit supporting .NET MAUI.

Should I consider to move my library code into the Xamarin.CommunityToolkit?

First off; that is entirely up to you. If you have a great feature that will benefit Xamarin.Forms users, we would love to take it in. There are several reasons for you to want that:

  • Share the development load; since we are with a core team (and hopefully a big community of contributors!) we can share the load to develop and maintain your code and you don't have to do it all by yourself. Of course, you can still be involved, in fact; we would love that!

  • Exposure; the Toolkit will probably get a lot of attention and so will your code shining as part of that.

  • Get involved! you will be involved in a great and lively community and get to work with us on your ideas and code. Of course, this is also true when you don't bring over your library :)

The thing you might ask yourself is: if Xamarin.Forms is going in maintenance mode, why should I invest time in porting my code to this Toolkit? Which is an excellent question.

Also see the answer to this question for that. Forms is evolving, not going away. So for years to come, people will find this library and use it. And by the time .NET MAUI comes along, my plan is to have features in here that are so good that the .NET MAUI team will be jealous of them and want to have them in their codebase.

In other words, this project is a great place experiment with concepts, let them develop and mature, stabilize and whenever they are good enough, they can move up to be a first-class citizen in .NET MAUI. And even if that doesn't happen, we think there will be enough room for a .NET MAUI Toolkit by that time and that will be just as awesome.

We hope this takes away your doubts, if not, please feel free to reach out!

Do I install the Toolkit on just my core project or also the platform (iOS, Android, etc.) project?

As always; it depends. It depends on what you're using. Because of the way Forms works, anything that needs a renderer will have to be installed on all platforms. Typically, this is true for all controls and effects.

If you're just using converters or behaviors, this is typically code that only lives on top of Forms and thus you only have to install the Toolkit on your Core project.

However, the Toolkit is linker-safe. This means, any part of the code that you are not using from the Toolkit, will be stripped out at compile time. Therefore, installing the Toolkit on your project will not unnecessarily bloat your application. It should not add the full weight of the Toolkit, just the parts that you are actually using.