Darp.Utils.Dialog
1.11.4
See the version list below for details.
dotnet add package Darp.Utils.Dialog --version 1.11.4
NuGet\Install-Package Darp.Utils.Dialog -Version 1.11.4
<PackageReference Include="Darp.Utils.Dialog" Version="1.11.4" />
<PackageVersion Include="Darp.Utils.Dialog" Version="1.11.4" />
<PackageReference Include="Darp.Utils.Dialog" />
paket add Darp.Utils.Dialog --version 1.11.4
#r "nuget: Darp.Utils.Dialog, 1.11.4"
#:package Darp.Utils.Dialog@1.11.4
#addin nuget:?package=Darp.Utils.Dialog&version=1.11.4
#tool nuget:?package=Darp.Utils.Dialog&version=1.11.4
Darp.Utils
This repository bundles all open source c# helper modules of 'rosslight GmbH'. To extend, add a new project and test project.
Darp.Utils.Assets
A collection of simple interfaces for app assets targeting desktop apps.
Currently implemented:
IFolderAssetsService
: Read or write to a specific folderIAppDataAssetsService
: Read or write to theApplicationData
. The relativePath might be e.g. the app name.IProgramDataAssetsService
: Read or write to theProgramData
. The relativePath might be e.g. the app name.IBaseDirectoryAssetsService
: Read from the base directory of the App's executableIEmbeddedResourceAssetsService
: Read files marked asEmbeddedResource
of a specific Assembly
Example:
// Add EmbeddedResources and AppData assets to the DI Container
ServiceProvider provider = new ServiceCollection()
.AddEmbeddedResourceAssetsService(typeof(Test).Assembly)
.AddAppDataAssetsService("RelativePath")
.BuildServiceProvider();
// Example read and write operations with the app data
IAppDataAssetsService service = provider.GetRequiredService<IAppDataAssetsService>();
await service.SerializeJsonAsync("test.json", new Test("value"));
Test deserialized = await service.DeserializeJsonAsync<Test>("test.json");
await service.WriteTextAsync("test2.txt", "some content");
// Copy an embedded resource to the app data
IEmbeddedResourceAssetsService resourceService = provider.GetRequiredService<IEmbeddedResourceAssetsService>();
await resourceService.CopyToAsync("test.json", service, "test.json");
file sealed record Test(string Prop1);
Darp.Utils.Configuration
A writable configuration service. Can be registered using DI and injected into target services. Usage might include reading, writing and listening to changes via the INotifyPropertyChanged interface.
Example:
ServiceProvider provider = new ServiceCollection()
.AddAppDataAssetsService("RelativePath")
.AddConfigurationFile<TestConfig, IAppDataAssetsService>("config.json")
.BuildServiceProvider();
IConfigurationService<TestConfig> service = provider.GetRequiredService<IConfigurationService<TestConfig>>();
TestConfig config = await service.LoadConfigurationAsync();
await service.WriteConfigurationAsync(config with { Setting = "NewValue" });
Darp.Utils.Dialog
A lightweight dialog service which allows for opening dialogs from the ViewModel.
Implementation | Description |
---|---|
Implementation based on FluentAvalonia |
Example:
ServiceProvider provider = new ServiceCollection()
.AddSingleton<IDialogService, AvaloniaDialogService>()
.BuildServiceProvider();
IDialogService dialogService = provider.GetRequiredService<IDialogService>();
// Specify the Type of the dataContext of the window the dialog is supposed to be shown on
// .WithDialogRoot<MainWindowViewModel>()
await _dialogService.CreateMessageBoxDialog("Title", "Message").ShowAsync();
// Assumes you have registered a view for 'SomeViewModel' in a ViewLocator
// Works with any kind of content
var viewModel = new SomeViewModel();
await _dialogService.CreateContentDialog("Title", viewModel)
.SetDefaultButton(ContentDialogButton.Primary)
.SetCloseButton("Close")
.SetPrimaryButton("Ok", onClick: model => model.IsModelValid)
.ShowAsync();
Darp.Utils.ResxSourceGenerator
A source generator for generating strongly typed singleton resource classes from .resx files. Additional documentation here.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. 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. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- CommunityToolkit.Mvvm (>= 8.3.2)
-
net9.0
- CommunityToolkit.Mvvm (>= 8.3.2)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Darp.Utils.Dialog:
Package | Downloads |
---|---|
Darp.Utils.Dialog.FluentAvalonia
Implementation of Darp.Utils.Dialog compatible with Avalonia |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
1.19.1 | 164 | 7/28/2025 |
1.19.0 | 121 | 7/27/2025 |
1.18.2 | 160 | 7/10/2025 |
1.18.1 | 208 | 7/7/2025 |
1.18.0 | 161 | 6/29/2025 |
1.17.4 | 111 | 6/28/2025 |
1.17.3 | 309 | 6/13/2025 |
1.17.2 | 295 | 6/12/2025 |
1.17.1 | 293 | 6/12/2025 |
1.17.0 | 208 | 6/8/2025 |
1.16.1 | 155 | 6/3/2025 |
1.16.0 | 104 | 5/24/2025 |
1.15.0 | 88 | 5/24/2025 |
1.14.3 | 222 | 5/22/2025 |
1.14.2 | 202 | 5/22/2025 |
1.14.1 | 185 | 5/20/2025 |
1.14.0 | 174 | 5/20/2025 |
1.13.2 | 162 | 5/19/2025 |
1.13.1 | 164 | 5/19/2025 |
1.13.0 | 326 | 3/5/2025 |
1.12.3 | 336 | 12/17/2024 |
1.12.2 | 160 | 12/12/2024 |
1.12.1 | 130 | 12/11/2024 |
1.12.0 | 117 | 12/11/2024 |
1.11.4 | 123 | 12/10/2024 |
1.11.3 | 111 | 12/10/2024 |
1.11.2 | 110 | 12/10/2024 |
1.11.1 | 111 | 12/9/2024 |
1.11.0 | 114 | 12/9/2024 |
1.10.0 | 208 | 10/21/2024 |
1.9.2 | 192 | 10/19/2024 |
1.9.1 | 162 | 10/19/2024 |
1.9.0 | 162 | 9/30/2024 |
1.8.0 | 157 | 9/26/2024 |
1.7.4 | 140 | 9/23/2024 |
1.7.3 | 132 | 9/22/2024 |
1.7.2 | 141 | 9/22/2024 |
1.7.1 | 139 | 9/22/2024 |
1.7.0 | 119 | 9/22/2024 |
1.6.3 | 243 | 9/10/2024 |
1.6.2 | 170 | 9/9/2024 |
1.6.1 | 139 | 9/9/2024 |
1.6.0 | 149 | 9/9/2024 |
1.5.1 | 145 | 9/7/2024 |
1.5.0 | 166 | 9/5/2024 |