FormaUI 0.0.0-alpha.0.115

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

// Install FormaUI as a Cake Tool
#tool nuget:?package=FormaUI&version=0.0.0-alpha.0.115&prerelease                

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. 
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.115 342 3/24/2024
0.0.0-alpha.0.112 73 3/21/2024
0.0.0-alpha.0.111 50 3/18/2024
0.0.0-alpha.0.110 98 3/18/2024
0.0.0-alpha.0.109 224 3/1/2024
0.0.0-alpha.0.106 174 2/11/2024
0.0.0-alpha.0.104 70 2/6/2024
0.0.0-alpha.0.101 76 2/3/2024
0.0.0-alpha.0.100 64 2/2/2024
0.0.0-alpha.0.99 60 2/1/2024
0.0.0-alpha.0.98 56 1/31/2024
0.0.0-alpha.0.97 48 1/30/2024
0.0.0-alpha.0.90 62 1/27/2024