Skip to content
项目

关于

一个 .NET MAUI 辅助工具和简单、可完全自定义控件的库,例如 SimpleShell——自定义 Shell 实现,可用于打造独特的导航体验。

开发工具

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
0
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

SimpleToolkit


SimpleToolkit is a collection of helpers and lightweight, easily customizable .NET MAUI controls designed to give developers full control over their app's UI and navigation.


[!CAUTION] Long-term support is not guaranteed for this project. Since this repository is released under the MIT license, you are allowed to fork it and build the packages for your own use. However, I would appreciate it if you did not redistribute it as your own work and, at a minimum, maintained the original copyright notice as required by the MIT license.

📦 NuGet Packages

The library is split into modular packages so you only pull in what you need:

📱 Samples

Here are some of my samples that were built using this library:

       

Marvelous .NET MAUI

       

Gadget Store App  |  Bet App

       

Navbar Animation #1  |  Navbar Animation #2

       

Hamburger Menu App  |  Waste App

[!TIP] View the full list of available samples here.

✅ Supported Platforms

  • Android
  • iOS / Mac Catalyst
  • Windows (WinUI)

🌐 SimpleToolkit.SimpleShell

SimpleToolkit.SimpleShell Documentation

SimpleShell is a lightweight, decoupled implementation of .NET MAUI Shell. It allows you to create entirely custom navigation experiences while retaining the core benefits of Shell.

All SimpleShell is is just a set of containers for your application content with the ability to put the hosting area for pages wherever you want. This gives you the flexibility to add custom tab bars, navigation bars, flyouts, etc. to your Shell application.

Bear in mind that SimpleShell does not come with any navigation controls. SimpleShell just gives you the ability to use custom navigation controls along with the URI-based navigation and automatic navigation stack management.

[!IMPORTANT] Before you begin using SimpleShell, I highly recommend familiarizing yourself with the standard .NET MAUI Shell — especially with the URI-based navigation, which works exactly the same as in SimpleShell.

Initialization

Initialize SimpleShell in your MauiProgram.cs file:

builder.UseSimpleShell();

Limitations and Trade-offs

While SimpleShell offers increased flexibility, there are scenarios where the standard .NET MAUI Shell might be a better fit:

  • Platform-Native Aesthetics: The standard Shell provides a look and feel that is native to each specific operating system.
  • Performance Optimization: Native navigation controls provided by the standard Shell may offer superior performance compared to custom controls composed of multiple .NET MAUI views.
  • Accessibility: Standard Shell is designed to be accessible out of the box by leveraging platform-specific controls. A SimpleShell implementation requires manual effort to ensure it meets the same accessibility standards.
  • Maturity: As a custom implementation, SimpleShell may have edge cases or performance impacts that have not yet been as rigorously tested as the official MAUI components.

See documentation for more information.

🔲 SimpleToolkit.SimpleButton

SimpleToolkit.SimpleButton Documentation

SimpleButton is a button control that can hold whatever content you want.

Initialization

Initialize SimpleButton in your MauiProgram.cs file:

builder.UseSimpleButton();

See documentation for more information.

📐 SimpleToolkit.Helpers

SimpleToolkit.Helpers Documentation

A collection of essential cross-platform helpers for .NET MAUI to bridge the gap between shared code and native platform APIs:

  • WindowInsetsProvider — Provides a unified way to retrieve current window insets.

See documentation for more information.

探索相关项目

加载中…