DigitalProduction.Maui.AppToolKit
0.15.4
dotnet add package DigitalProduction.Maui.AppToolKit --version 0.15.4
NuGet\Install-Package DigitalProduction.Maui.AppToolKit -Version 0.15.4
<PackageReference Include="DigitalProduction.Maui.AppToolKit" Version="0.15.4" />
<PackageVersion Include="DigitalProduction.Maui.AppToolKit" Version="0.15.4" />
<PackageReference Include="DigitalProduction.Maui.AppToolKit" />
paket add DigitalProduction.Maui.AppToolKit --version 0.15.4
#r "nuget: DigitalProduction.Maui.AppToolKit, 0.15.4"
#:package DigitalProduction.Maui.AppToolKit@0.15.4
#addin nuget:?package=DigitalProduction.Maui.AppToolKit&version=0.15.4
#tool nuget:?package=DigitalProduction.Maui.AppToolKit&version=0.15.4
DigitalProduction.Maui.AppToolkit
A collection of classes, utilities, and resources for building .Net Maui applications faster and conistently.
It includes Views (Pages and Popups), ViewModels, Validation, FileTypes, Converations, and Validation components.
Requirements
Version 0.14.0 and later require .NET 10 and DigitalProduction.Maui 0.11.0 or later. The demo requires DigitalProduction.Maui.Images 1.2.0. Build with the .NET 10 SDK, its default C# 14 language version, and corresponding MAUI platform workloads.
Version 0.13.15 is the final .NET 9 release and is no longer maintained.
Validation behaviors and trimming
Starting with 0.15.0, FileExistsValidationBehavior, DirectoryExistsValidationBehavior and
FileNameValidationBehavior use TrimSafeValidationBehavior<T> instead of the Toolkit's
ValidationBehavior<T>. The Toolkit base creates string-path bindings and declares itself
unsafe for trimming; preserving all members does not make those bindings safe.
The behaviors read Text directly from the bindable property on Entry, Editor, SearchBar
and Label. Flags (the Toolkit ValidationFlags enum), validity/running state, styles,
ForceValidate, ForceValidateCommand and the reported Error remain available. Unset values
report validation errors. Updating an error no longer triggers another validation pass.
This changes the base type: these behaviors cannot be assigned to Toolkit ValidationBehavior
or nested in its MultiValidationBehavior. Arbitrary string property paths are unsupported.
For another control/property, override GetValueProperty to return its BindableProperty, or
set ValuePropertyName="" and bind Value using a compiled binding. For example, in C#:
var behavior = new DirectoryExistsValidationBehavior { ValuePropertyName = "" };
behavior.SetBinding(TrimSafeValidationBehavior<string>.ValueProperty,
static (Entry source) => source.Text, source: entry);
entry.Behaviors.Add(behavior);
For XAML, use x:DataType and enable compilation of bindings with an explicit Source
(MauiEnableXamlCBindingWithSourceCompilation). Behaviors do not inherit the control's binding
context. The new base propagates validation exceptions; Toolkit's global exception-suppression
option no longer applies. The built-in path validators handle null input without throwing.
The Windows validation smoke app checks the actual library in
a consumer published with full trimming and Native AOT. This verifies these behaviors, not
Native AOT compatibility of every AppToolkit component or dependency. The shared-style warning
was fixed in #124.
The external akgul.Maui.DataGrid dependency still produces publish-time warnings; investigate
those if they cause a bug in an application. Apple Native AOT and
Android runtime execution require validation on their respective hosts/devices.
FileNameValidationBehavior expects a fully qualified path including the directory and file name.
Callers should resolve relative paths and bare file names before validation; the behavior does
not enforce or normalize this input contract. With RequireFileToExist=true, the file itself
must exist. With it disabled, only file name validity is checked; the file and parent directory
do not have to exist.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0-android36.0 is compatible. net10.0-ios26.0 is compatible. net10.0-maccatalyst26.0 is compatible. net10.0-windows10.0.19041 is compatible. |
-
net10.0-android36.0
- akgul.Maui.DataGrid (>= 4.0.6)
- CommunityToolkit.Maui (>= 13.0.0)
- CommunityToolkit.Mvvm (>= 8.4.2)
- DigitalProduction.Maui (>= 0.11.0)
- Microsoft.Maui.Controls (>= 10.0.20)
-
net10.0-ios26.0
- akgul.Maui.DataGrid (>= 4.0.6)
- CommunityToolkit.Maui (>= 13.0.0)
- CommunityToolkit.Mvvm (>= 8.4.2)
- DigitalProduction.Maui (>= 0.11.0)
- Microsoft.Maui.Controls (>= 10.0.20)
-
net10.0-maccatalyst26.0
- akgul.Maui.DataGrid (>= 4.0.6)
- CommunityToolkit.Maui (>= 13.0.0)
- CommunityToolkit.Mvvm (>= 8.4.2)
- DigitalProduction.Maui (>= 0.11.0)
- Microsoft.Maui.Controls (>= 10.0.20)
-
net10.0-windows10.0.19041
- akgul.Maui.DataGrid (>= 4.0.6)
- CommunityToolkit.Maui (>= 13.0.0)
- CommunityToolkit.Mvvm (>= 8.4.2)
- DigitalProduction.Maui (>= 0.11.0)
- Microsoft.Maui.Controls (>= 10.0.20)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on DigitalProduction.Maui.AppToolKit:
| Package | Downloads |
|---|---|
|
DigitalProduction.Units.Maui
Interface components for using the Thunder Units conversion library in .Net Maui. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.15.4 | 92 | 11/9/2026 |
| 0.12.0 | 356 | 6/15/2025 |
| 0.11.6 | 411 | 4/7/2025 |
| 0.11.1 | 249 | 3/2/2025 |
| 0.11.0 | 244 | 3/2/2025 |
| 0.10.5 | 222 | 2/28/2025 |
| 0.10.4 | 215 | 2/28/2025 |
| 0.10.3 | 199 | 2/28/2025 |
| 0.10.2 | 211 | 2/25/2025 |
| 0.10.1 | 196 | 2/25/2025 |
| 0.10.0 | 218 | 2/25/2025 |
| 0.9.1 | 221 | 2/15/2025 |
| 0.9.0 | 231 | 2/14/2025 |
| 0.8.3 | 220 | 2/13/2025 |
| 0.8.2 | 222 | 2/13/2025 |
| 0.8.1 | 209 | 2/13/2025 |
| 0.8.0 | 185 | 2/13/2025 |
| 0.7.2 | 228 | 1/30/2025 |
| 0.7.1 | 202 | 1/27/2025 |
| 0.7.0 | 203 | 1/25/2025 |