FormaUI 0.0.0-alpha.0.117

This is a prerelease version of FormaUI.
dotnet add package FormaUI --version 0.0.0-alpha.0.117
                    
NuGet\Install-Package FormaUI -Version 0.0.0-alpha.0.117
                    
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="FormaUI" Version="0.0.0-alpha.0.117" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="FormaUI" Version="0.0.0-alpha.0.117" />
                    
Directory.Packages.props
<PackageReference Include="FormaUI" />
                    
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 FormaUI --version 0.0.0-alpha.0.117
                    
#r "nuget: FormaUI, 0.0.0-alpha.0.117"
                    
#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 FormaUI@0.0.0-alpha.0.117
                    
#: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=FormaUI&version=0.0.0-alpha.0.117&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=FormaUI&version=0.0.0-alpha.0.117&prerelease
                    
Install as a Cake Tool

FormaUI

FormaUI implements FluentUI styles for existing WPF components.

Getting Started

Follow these steps to setup FormaUI in your WPF application.

Configuring App.xaml

Like any other WPF library, the styles needs to be imported through the App.xaml file, declaring the proper resource dictionary in the merged dictionaries.

<Application
  x:Class="WpfApplication.App"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:local="clr-namespace:WpfApplication"
  StartupUri="MainWindow.xaml">
  <Application.Resources>
    <ResourceDictionary>
      <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="pack://application:,,,/FormaUI;component/Styles/Fluent.xaml" />
      </ResourceDictionary.MergedDictionaries>
    </ResourceDictionary>
  </Application.Resources>
</Application>

Additionally you can add the following dicctionary to use the dark theme.

<ResourceDictionary Source="pack://application:,,,/FormaUI;component/Styles/Themes/ColorsDark.xaml" />

You can switch between the light and dark theme at runtime by changing calling this function

ThemeManager.ChangeTheme(Theme.Light);
ThemeManager.ChangeTheme(Theme.Dark);
ThemeManager.ChangeTheme(Theme.SystemTheme);

Configuring a Window

Additionally any window that you want to use the Forma styles needs to be declared as a FluentWindow.

<forma:FluentWindow
  x:Class="WpfApplication.MainWindow"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  xmlns:forma="clr-namespace:FormaUI.Controls;assembly=FormaUI"
  xmlns:local="clr-namespace:WpfApplication"
  Title="MainWindow"
  Width="800"
  Height="600"
  mc:Ignorable="d">

</forma:FluentWindow>
Product Compatible and additional computed target framework versions.
.NET 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
0.0.0-alpha.0.117 185 12/8/2024
0.0.0-alpha.0.115 584 3/24/2024
0.0.0-alpha.0.112 96 3/21/2024
0.0.0-alpha.0.111 76 3/18/2024
0.0.0-alpha.0.110 130 3/18/2024
0.0.0-alpha.0.109 252 3/1/2024
0.0.0-alpha.0.106 204 2/11/2024
0.0.0-alpha.0.104 98 2/6/2024
0.0.0-alpha.0.101 99 2/3/2024
0.0.0-alpha.0.100 89 2/2/2024
0.0.0-alpha.0.99 85 2/1/2024
0.0.0-alpha.0.98 80 1/31/2024
0.0.0-alpha.0.97 82 1/30/2024
0.0.0-alpha.0.90 84 1/27/2024