MAUI-.NET MAUI Community Toolkit

[删除(380066935@qq.com或微信通知)]

.NET MAUI Community Toolkit

.NET MAUI Community Toolkit是使用 .NET MAUI 进行应用程序开发的可重用元素集合,包括动画、行为、转换器、效果和帮助程序。 它简化了使用 .NET MAUI 生成iOS、Android、macOS和 WinUI 应用程序的常见开发人员任务并演示了这些任务。

MAUI Community Toolkit可用作新项目或现有 .NET MAUI 项目的一组NuGet包。

还可以通过运行 MAUI Community Toolkit 存储库中提供的示例应用来预览工具包的功能。

CommunityToolkit/Maui: The .NET MAUI Community Toolkit is a community-created library that contains .NET MAUI Extensions, Advanced UI/UX Controls, and Behaviors to help make your life as a .NET MAUI developer easier (github.com)

The .NET MAUI Community Toolkit is a collection of common elements for development with .NET MAUI that developers tend to replicate across multiple apps. It simplifies and demonstrates common developer tasks when building apps with .NET MAUI.

All features are contributed by you, our amazing .NET community, and maintained by a core set of maintainers.

And – the best part – the features you add to the .NET MAUI Toolkit may one day be included into the official .NET MAUI library! We leverage the Community Toolkits to debut new features and work closely with the .NET MAUI engineering team to nominate features for promotion.

Getting Started

In order to use the .NET MAUI Community Toolkit you need to call the extension method in your MauiProgram.cs file as follows:

using CommunityToolkit.Maui;

public static class MauiProgram
{
	public static MauiApp CreateMauiApp()
	{
		var builder = MauiApp.CreateBuilder();
		
		// Initialise the toolkit
		builder.UseMauiApp<App>().UseMauiCommunityToolkit();

		// the rest of your logic...
	}
}

XAML usage

In order to make use of the toolkit within XAML you can use this namespace:

xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"

Submitting A New Feature

New features will follow the below workflow, described in more detail in the steps below

New Feature Workflow