pkar.MAUI.Configs
1.1.0
Prefix Reserved
dotnet add package pkar.MAUI.Configs --version 1.1.0
NuGet\Install-Package pkar.MAUI.Configs -Version 1.1.0
<PackageReference Include="pkar.MAUI.Configs" Version="1.1.0" />
paket add pkar.MAUI.Configs --version 1.1.0
#r "nuget: pkar.MAUI.Configs, 1.1.0"
// Install pkar.MAUI.Configs as a Cake Addin #addin nuget:?package=pkar.MAUI.Configs&version=1.1.0 // Install pkar.MAUI.Configs as a Cake Tool #tool nuget:?package=pkar.MAUI.Configs&version=1.1.0
This Nuget adds UI extensions helpers to transfer data between UI elements and .Net configuration. It is similar to my other Nuget: pkar.Uwp.Config
It uses my Nuget pkar.NetConfigs, and its definition of various config providers. Used config sources:
- INI source;
- Environment variables (which are prefixed with appname);
- JSON source, also roaming and local
- command line arguments.
You can init config library using direct pkar.NetConfigs.InitSettings, or via this Nuget:
initialization
Sub InitSettings(sIniContent As String, bIniUseDebug As Boolean)
Using string with Ini file content, not filename as parameter solves problem with same library used in Platform Uno (and Xamarin) contexts - Android doesn't unpack install files, so files cannot be accessed in standard way.
helpers
For all [Get|Set]Settings*, you can provide setting name (key), or use default (same as UI element name). For GetSettings*, you can provide default value, and for SetSettings*, you can specify if setting should be placed also in roaming (it is always placed in local setting).
Label.[Get|Set]SettingsString()
Entry.[Get|Set]SettingsString()
Entry.[Get|Set]SettingsInt() // this Int can be scaled (int is saved, but UI get double)
Switch.[Get|Set]SettingsBool
Slider.[Get|Set]SettingsInt()
Picker.[Get|Set]SettingsInt() // selected item index
DatePicker.[Get|Set]SettingsDate
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-android33.0 is compatible. net7.0-ios was computed. net7.0-ios16.1 is compatible. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net7.0-windows10.0.19041 is compatible. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- pkar.NetConfigs (>= 2.0.5)
-
net7.0-android33.0
- pkar.NetConfigs (>= 2.0.5)
-
net7.0-ios16.1
- pkar.NetConfigs (>= 2.0.5)
-
net7.0-windows10.0.19041
- pkar.NetConfigs (>= 2.0.5)
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.1.0 | 168 | 10/10/2023 |