Frontmatec.Windows 2.0.29

There is a newer version of this package available.
See the version list below for details.
dotnet add package Frontmatec.Windows --version 2.0.29                
NuGet\Install-Package Frontmatec.Windows -Version 2.0.29                
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="Frontmatec.Windows" Version="2.0.29" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Frontmatec.Windows --version 2.0.29                
#r "nuget: Frontmatec.Windows, 2.0.29"                
#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.
// Install Frontmatec.Windows as a Cake Addin
#addin nuget:?package=Frontmatec.Windows&version=2.0.29

// Install Frontmatec.Windows as a Cake Tool
#tool nuget:?package=Frontmatec.Windows&version=2.0.29                

Frontmatec.Windows

App

XAML:

 <Application.Resources>
     <ResourceDictionary>
         <ResourceDictionary.MergedDictionaries>
             <ResourceDictionary Source="/Frontmatec.Windows;component/Themes/Dark.xaml" />
         </ResourceDictionary.MergedDictionaries>
     </ResourceDictionary>
 </Application.Resources>

CS:

using Frontmatec.Windows;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Hosting;
using System;
using System.Windows;

public partial class App : Application
{
    private IHost _host;

     protected override async void OnStartup(StartupEventArgs e)
     {
         _host = await Host.CreateDefaultBuilder()
             .ConfigureAppConfiguration((context, configure) => configure
                 .AddEnvironmentVariables()
                 .SetBasePath(AppContext.BaseDirectory)
                 .AddJsonFile("appsettings.json", optional: false, reloadOnChange: false)
                 .AddCommandLine(e.Args)
             )
             .ConfigureLogging((context, logging) => logging
                 .ClearProviders()
                 .AddConfiguration(context.Configuration.GetSection("Logging"))
             )
             .ConfigureServices((context, services) => services
                 .Configure<LocalizerOptions>(context.Configuration.GetSection("Windows:Localize"))
                 .Configure<StyleOptions>(context.Configuration.GetSection("Windows:Style"))

                 .AddSingleton<IComponentFactory, ComponentFactory>()
                 .AddSingleton<IDialogManager, DialogManager>()
                 .AddHostedSingletonService<IStyleManager, StyleManager>()
                 .AddSingleton<IWindowFactory, WindowFactory>()
                 .AddSingleton<IWindowManager, WindowManager>()
                 .AddHostedSingletonService<IUnhandledExceptionHandler, UnhandledExceptionHandler>()
                    
                 .AddSingleton<IResourceProvider, RegexResourceProvider>()
                 .AddSingleton<ILocalizer, Localizer>()

                 .AddSingleton<MainWindowViewModel>()
                 .AddSingleton<Application>(this)
             ) 
             .BuildAndStartApplicationAsync();
 
         var windowManager = _host.Services.GetRequiredService<IWindowManager>();
         var mainWindow = _host.Services.GetRequiredService<MainWindowViewModel>();
         windowManager.ShowWindow(mainWindow);
     }

     protected override async void OnExit(ExitEventArgs e)
     {
         await _host.StopAsync();
         _host.Dispose();
     }
}

AppSettings:

{
    "Windows": {
      "Localize": {
        "CurrentCulture": "da",
        "SupportedCultures": [ "da","de", "en" ]
      },
      "Style": {
        "AccentColor": "#086bc3",
        "ControlHeight": 35,
        "ControlHeightSmall": 25,
        "Theme": "Dark"
      }
  }
}
Product Compatible and additional computed target framework versions.
.NET net6.0-windows7.0 is compatible.  net7.0-windows was computed.  net8.0-windows was computed.  net8.0-windows7.0 is compatible.  net9.0-windows was computed.  net9.0-windows7.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
2.0.30 200 12/20/2024
2.0.29 94 12/19/2024
2.0.28 90 12/10/2024
2.0.27 168 11/15/2024
2.0.26 119 10/22/2024
2.0.25 231 9/20/2024
2.0.24 134 9/20/2024
2.0.23 106 9/13/2024
2.0.22 315 9/4/2024
2.0.21 169 7/12/2024
2.0.20 100 7/12/2024
2.0.19 234 7/8/2024
2.0.18 126 7/6/2024
2.0.17 118 7/4/2024
2.0.16 110 6/19/2024
2.0.15 165 3/8/2024
2.0.14 125 2/29/2024
2.0.13 181 2/29/2024
2.0.11 177 9/20/2023
2.0.10 123 9/20/2023
2.0.9 550 9/11/2023
2.0.8 133 9/11/2023
2.0.7 140 9/8/2023
2.0.6 137 9/8/2023
2.0.5 160 9/6/2023
2.0.4 162 8/28/2023
2.0.3 215 8/14/2023
2.0.2 167 6/26/2023
2.0.1 159 6/26/2023
2.0.0 167 5/16/2023
1.2.20 198 5/2/2023
1.2.19 263 4/5/2023
1.2.18 231 3/31/2023
1.2.17 346 3/9/2023
1.2.16 237 3/6/2023
1.2.15 227 3/6/2023
1.2.14 253 3/3/2023
1.2.13 239 3/3/2023
1.2.12 235 2/28/2023
1.2.11 349 2/27/2023
1.2.10 264 2/27/2023
1.2.9 263 2/21/2023
1.2.8 311 1/27/2023
1.2.7 288 1/27/2023
1.2.6 305 1/27/2023
1.2.5 330 1/2/2023
1.2.4 490 12/1/2022
1.2.3 398 11/15/2022
1.2.2 451 9/6/2022
1.2.1 420 9/5/2022
1.2.0 443 9/5/2022
1.1.3 467 6/16/2022
1.1.2 450 5/19/2022
1.1.1 475 5/18/2022
1.1.0 455 5/4/2022
1.0.45 343 11/16/2021
1.0.44 459 6/18/2021
1.0.43 452 6/18/2021
1.0.42 397 6/18/2021
1.0.41 398 5/31/2021
1.0.39 384 5/27/2021
1.0.38 364 5/27/2021
1.0.37 378 5/26/2021
1.0.36 388 5/26/2021
1.0.35 385 5/26/2021
1.0.34 405 5/21/2021
1.0.33 364 5/20/2021
1.0.32 401 5/20/2021
1.0.31 358 5/19/2021
1.0.30 376 5/11/2021
1.0.29 356 5/11/2021
1.0.28 465 12/9/2020
1.0.27 456 12/9/2020
1.0.26 488 8/10/2020
1.0.25 573 2/19/2020
1.0.24 560 2/19/2020
1.0.23 582 2/19/2020
1.0.22 534 2/19/2020
1.0.21 544 2/19/2020
1.0.20 525 2/3/2020
1.0.19 556 2/3/2020
1.0.18 527 2/3/2020
1.0.17 532 2/3/2020
1.0.16 524 2/3/2020
1.0.15 530 1/30/2020
1.0.14 546 1/29/2020
1.0.13 504 1/29/2020
1.0.12 492 1/29/2020
1.0.11 597 1/28/2020
1.0.10 541 1/24/2020
1.0.9 544 1/23/2020
1.0.8 628 1/22/2020
1.0.7 543 1/22/2020
1.0.6 557 1/17/2020
1.0.5 524 1/17/2020
1.0.4 518 1/17/2020
1.0.3 531 1/17/2020
1.0.2 528 1/17/2020
1.0.1 528 1/17/2020
1.0.0 549 1/13/2020