Waft WinUI
WinUI controls and Fluent styling for Waft.
The library ports control templates, theme resources and behavior from Microsoft’s WinUI. Waft handles rendering, layout and input.
Try it
Waft requires nightly Rust:
Run the gallery from the Waft repository, where the kit lives.
Use it
[]
= "0.4.0"
Use controls inside an Waft WidgetsApp, with ThemeScope selecting the light or dark theme. Call install_icon_font once during application setup. Controls that show popups need an Overlay ancestor.
A ThemeScope can also change WinUI's theme resources for its subtree, as XAML's resource dictionaries do: any in both themes, then light or dark. Each resource is a field named after its XAML key.
new
.any
.dark
ThemeScope::overriding(child) changes the enclosing scope's resources for one control, as <Control.Resources> does.
The gallery demonstrates application setup, font registration and control state.
Contributing
Porting guidance, tests and resource generation: the porting-winui skill.
License
MIT. Microsoft’s source and the bundled icon font retain their third-party notices.