Frontmatec.Windows 2.0.30

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

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.  net10.0-windows was computed. 
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.1.12 765 10/7/2025
2.1.11 321 9/24/2025
2.1.10 278 9/23/2025
2.1.9 306 9/15/2025
2.1.8 507 9/9/2025
2.1.7 227 9/8/2025
2.1.6 195 9/5/2025
2.1.5 252 9/4/2025
2.1.4 214 9/4/2025
2.1.3 206 9/4/2025
2.1.2 221 9/4/2025
2.1.1 593 8/13/2025
2.1.0 201 8/13/2025
2.0.46 942 5/14/2025
2.0.45 303 5/14/2025
2.0.44 335 5/13/2025
2.0.43 307 5/12/2025
2.0.42 298 5/12/2025
2.0.41 320 5/6/2025
2.0.40 257 5/5/2025
2.0.39 407 4/16/2025
2.0.37 286 4/15/2025
2.0.36 289 4/15/2025
2.0.35 315 4/8/2025
2.0.34 649 3/4/2025
2.0.33 313 3/4/2025
2.0.32 254 2/27/2025
2.0.31 182 2/25/2025
2.0.30 474 12/20/2024
2.0.29 217 12/19/2024
2.0.28 209 12/10/2024
2.0.27 288 11/15/2024
2.0.26 250 10/22/2024
2.0.25 346 9/20/2024
2.0.24 251 9/20/2024
2.0.23 215 9/13/2024
2.0.22 433 9/4/2024
2.0.21 279 7/12/2024
2.0.20 223 7/12/2024
2.0.19 345 7/8/2024
2.0.18 243 7/6/2024
2.0.17 231 7/4/2024
2.0.16 222 6/19/2024
2.0.15 281 3/8/2024
2.0.14 240 2/29/2024
2.0.13 330 2/29/2024
2.0.11 259 9/20/2023
2.0.10 202 9/20/2023
2.0.9 667 9/11/2023
2.0.8 213 9/11/2023
2.0.7 237 9/8/2023
2.0.6 232 9/8/2023
2.0.5 255 9/6/2023
2.0.4 256 8/28/2023
2.0.3 314 8/14/2023
2.0.2 276 6/26/2023
2.0.1 263 6/26/2023
2.0.0 286 5/16/2023
1.2.20 322 5/2/2023
1.2.19 392 4/5/2023
1.2.18 329 3/31/2023
1.2.17 429 3/9/2023
1.2.16 319 3/6/2023
1.2.15 324 3/6/2023
1.2.14 346 3/3/2023
1.2.13 335 3/3/2023
1.2.12 329 2/28/2023
1.2.11 433 2/27/2023
1.2.10 358 2/27/2023
1.2.9 354 2/21/2023
1.2.8 393 1/27/2023
1.2.7 374 1/27/2023
1.2.6 400 1/27/2023
1.2.5 430 1/2/2023
1.2.4 587 12/1/2022
1.2.3 495 11/15/2022
1.2.2 542 9/6/2022
1.2.1 524 9/5/2022
1.2.0 548 9/5/2022
1.1.3 581 6/16/2022
1.1.2 566 5/19/2022
1.1.1 588 5/18/2022
1.1.0 560 5/4/2022
1.0.45 455 11/16/2021
1.0.44 576 6/18/2021
1.0.43 580 6/18/2021
1.0.42 510 6/18/2021
1.0.41 511 5/31/2021
1.0.39 512 5/27/2021
1.0.38 490 5/27/2021
1.0.37 501 5/26/2021
1.0.36 496 5/26/2021
1.0.35 496 5/26/2021
1.0.34 527 5/21/2021
1.0.33 486 5/20/2021
1.0.32 526 5/20/2021
1.0.31 477 5/19/2021
1.0.30 503 5/11/2021
1.0.29 481 5/11/2021
1.0.28 603 12/9/2020
1.0.27 595 12/9/2020
1.0.26 628 8/10/2020
1.0.25 710 2/19/2020
1.0.24 709 2/19/2020
1.0.23 729 2/19/2020
1.0.22 678 2/19/2020
1.0.21 688 2/19/2020
1.0.20 687 2/3/2020
1.0.19 690 2/3/2020
1.0.18 668 2/3/2020
1.0.17 685 2/3/2020
1.0.16 658 2/3/2020
1.0.15 677 1/30/2020
1.0.14 691 1/29/2020
1.0.13 656 1/29/2020
1.0.12 638 1/29/2020
1.0.11 747 1/28/2020
1.0.10 688 1/24/2020
1.0.9 690 1/23/2020
1.0.8 762 1/22/2020
1.0.7 680 1/22/2020
1.0.6 702 1/17/2020
1.0.5 671 1/17/2020
1.0.4 663 1/17/2020
1.0.3 676 1/17/2020
1.0.2 667 1/17/2020
1.0.1 676 1/17/2020
1.0.0 698 1/13/2020