Aquila.Common
1.0.0
dotnet add package Aquila.Common --version 1.0.0
NuGet\Install-Package Aquila.Common -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Aquila.Common" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Aquila.Common" Version="1.0.0" />
<PackageReference Include="Aquila.Common" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Aquila.Common --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Aquila.Common, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Aquila.Common@1.0.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Aquila.Common&version=1.0.0
#tool nuget:?package=Aquila.Common&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Aquila.Common – User Guide
Overview
Aquila.Common is a .NET MAUI 10 library that provides:
- Global variables for app-wide access
- Type-safe dynamic storage for primitives and objects
- Observable collections for UI binding
It simplifies managing shared state, dynamic data, and reactive UI in MAUI apps.
Benefits
- Type-safe Storage – Avoids casting errors with generics.
- Thread-safe – Uses
ConcurrentDictionaryfor safe multi-thread access. - Centralized Access – Globals and stores are accessible anywhere.
- UI Binding – Observable stores integrate with CollectionView/ListView.
- Flexible – Supports strings, integers, floats, decimals, lists, dictionaries, and objects.
- Enterprise-ready – Scalable, maintainable, and suitable for large MAUI projects.
How to Use
1. Global Variables
Use UserGlobals, FinanceGlobals, or AppGlobals to store app-wide data:
using Aquila.Common.GlobalVariables;
// Set values
UserGlobals.Username = "Aswin";
FinanceGlobals.Balance = 1500.50m;
AppGlobals.IsDebug = true;
// Read values
Console.WriteLine(UserGlobals.Username);
Console.WriteLine(FinanceGlobals.Balance);
Console.WriteLine(AppGlobals.IsDebug);
2. TypedStore for Primitives
Store primitive types safely:
using Aquila.Common.DynamicStorage;
// Set primitive values
Globals.Strings.Set("Username", "Aswin");
Globals.Integers.Set("Age", 28);
Globals.Decimals.Set("Balance", 1500.50m);
Globals.Floats.Set("PiApprox", 3.1415f);
// Get values
string user = Globals.Strings.Get("Username");
int age = Globals.Integers.Get("Age");
decimal balance = Globals.Decimals.Get("Balance");
float pi = Globals.Floats.Get("PiApprox");
3. ObjectStore for Complex Data
Store dictionaries, lists, and custom objects:
using System.Collections.Generic;
using Aquila.Common.DynamicStorage;
// Set objects
Globals.Objects.Set("Settings", new Dictionary<string,string> { {"Theme","Dark"} });
Globals.Objects.Set("NameList", new List<string> { "Alice", "Bob" });
// Get objects with generic Get<T>()
var settings = Globals.Objects.Get<Dictionary<string,string>>("Settings");
var names = Globals.Objects.Get<List<string>>("NameList");
// Access values
Console.WriteLine(settings["Theme"]); // Dark
Console.WriteLine(string.Join(",", names)); // Alice,Bob
4. ObservableStore for UI Binding
Bind collections to UI elements like CollectionView:
using Aquila.Common.DynamicStorage;
// Create observable store
var obsStore = new ObservableStore<string>();
// Add items
obsStore.Add("Item 1");
obsStore.Add("Item 2");
// Bind to MAUI CollectionView
MyCollectionView.ItemsSource = obsStore.Items;
// Remove or clear items
obsStore.Remove("Item 1");
obsStore.Clear();
5. Recommended Usage Patterns
- Use TypedStore<T> for primitives (string, int, float, decimal).
- Use ObjectStore for complex types (lists, dictionaries, objects).
- Use ObservableStore<T> for UI-bound collections.
- Store session-level or app-wide variables in
UserGlobals/FinanceGlobals/AppGlobals. - Clear or remove unused keys to prevent stale data.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0-android36.0 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0-android36.0
- Microsoft.Maui.Controls (>= 10.0.41)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 148 | 2/27/2026 |