Joufflu WPF Components
A modern WPF component library that makes your desktop apps look good by default.
WPF inputs and reusable components for .NET, built on a design system of themed brushes, dimensions and layout helpers. Every control reads its colours through DynamicResource, so the whole UI re-themes live between Light and Dark — no restart, no flicker.
These pages mirror the controls in the Joufflu.Samples gallery app — same titles, descriptions and code snippets. Each control page lists example markup you can paste into your views.
Using an LLM agent? Point it at the machine-readable
llms.txtindex — a single file linking every page’s raw Markdown source, orllms-full.txtfor every page in one file. Use those raw URLs rather than the rendered site, which can return403to automated fetchers.
Highlights
- 🌗 Live Light / Dark theming — flip the theme at runtime and every control follows instantly.
- 🎨 A real design system, built to be customized — semantic colours, dimensions, sizing and spacing exposed as override-able resource keys; the gallery’s Customize theme window (palette button in its title bar) edits them live and generates the dictionary.
- 🧩 Ready-to-use inputs — numeric, decimal and timespan pickers, searchable and tag combo boxes, file and colour pickers, inline-editable text, dropdowns.
- 🧭 Navigation & overlays — a navigation menu, a view-model-first page container, awaitable modal dialogs and a paging selector.
- 🗂️ A file explorer — breadcrumb, folder tree and file list sharing a source, with shell-backed file operations and nodes of your own.
- 🧾 JSON data trees — fill a value in against a JSON Schema, or build one from scratch.
- 🪟 Custom-chrome window & natives — a themed application shell plus restyled built-in WPF controls that match out of the box.
- 📦 Modular packages — take just the core styles, or add inputs and navigation only where you need them.
The gallery’s Native controls group — WPF’s built-in controls restyled to match the design system (text boxes, combo boxes, data grid, …) — is mostly undocumented here; only natives with named style variants are (see Native controls). Otherwise these pages cover the custom controls the library adds.
Sections
| Section | What’s inside |
|---|---|
| Themes | The application shell (ThemedWindow), ThemeManager, the design tokens and the live theme customizer |
| Native controls | Text sizes and muted text, FontIcon and Chevron, the Card styles, buttons and toggle buttons (solid, soft & outline variants) |
| Toolkit | Sizing, spacing, derived dimensions, tooltips, animation, drag and drop, shared width, creating a custom control |
| Joufflu controls | The optional packages: Feedback (Badge, Spinner, toasts), Inputs (numeric, search, combo boxes, pickers, Dropdown…), Navigation (NavigationMenu, overlays, Paging), Data (DataFill, DataEdit, DataDisplay) and File explorer |
Getting started
-
Add the packages you need.
Jouffluis the core (styles & theming);Joufflu.Data,Joufflu.Feedback,Joufflu.FileExplorer,Joufflu.InputsandJoufflu.Navigationare optional and all build on it:dotnet add package Joufflu dotnet add package Joufflu.Data # optional: JSON data trees (needs Joufflu.Inputs) dotnet add package Joufflu.Feedback # optional: badges, spinner, toasts dotnet add package Joufflu.FileExplorer # optional: file explorer (needs Joufflu.Feedback) dotnet add package Joufflu.Inputs # optional: input controls dotnet add package Joufflu.Navigation # optional: navigation & overlays -
Merge the control styles in
App.xamlso the themed styles and thejoufflu:Dimensionskeys are available (thejoufflu:Brushescome with the theme, step 3):<Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="pack://application:,,,/Joufflu;component/Resources.xaml" /> </ResourceDictionary.MergedDictionaries> </ResourceDictionary> </Application.Resources> -
Initialize the theme manager once at startup, before the first window shows:
// App.xaml.cs — OnStartup ThemeManager.Instance.Initialize(); -
Use the controls as shown in the pages above.
New to the library? The Tutorial builds a full navigable app shell — side menu, pages, modals and toasts — from scratch, and the Recipes give copy-paste screens. Choosing between UI libraries? See Joufflu vs other WPF UI libraries.
To explore everything interactively, run the Joufflu.Samples project.