FormaUI 0.0.0-alpha.0.109
See the version list below for details.
dotnet add package FormaUI --version 0.0.0-alpha.0.109
NuGet\Install-Package FormaUI -Version 0.0.0-alpha.0.109
<PackageReference Include="FormaUI" Version="0.0.0-alpha.0.109" />
paket add FormaUI --version 0.0.0-alpha.0.109
#r "nuget: FormaUI, 0.0.0-alpha.0.109"
// Install FormaUI as a Cake Addin #addin nuget:?package=FormaUI&version=0.0.0-alpha.0.109&prerelease // Install FormaUI as a Cake Tool #tool nuget:?package=FormaUI&version=0.0.0-alpha.0.109&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 | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0-windows7.0 is compatible. |
-
net8.0-windows7.0
- Microsoft.Xaml.Behaviors.Wpf (>= 1.1.77)
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 | 362 | 3/24/2024 |
0.0.0-alpha.0.112 | 75 | 3/21/2024 |
0.0.0-alpha.0.111 | 52 | 3/18/2024 |
0.0.0-alpha.0.110 | 100 | 3/18/2024 |
0.0.0-alpha.0.109 | 227 | 3/1/2024 |
0.0.0-alpha.0.106 | 176 | 2/11/2024 |
0.0.0-alpha.0.104 | 73 | 2/6/2024 |
0.0.0-alpha.0.101 | 79 | 2/3/2024 |
0.0.0-alpha.0.100 | 65 | 2/2/2024 |
0.0.0-alpha.0.99 | 63 | 2/1/2024 |
0.0.0-alpha.0.98 | 59 | 1/31/2024 |
0.0.0-alpha.0.97 | 51 | 1/30/2024 |
0.0.0-alpha.0.90 | 65 | 1/27/2024 |