Repository navigation
Labels
Milestone
Description
Description
WPF's Fluent control styles have some issues which need to be addressed to bring the styles at parity with WinUI Fluent styles and make them production ready. We also need some changes to default values of properties ( like HorizontalAlignment, etc. ) to minimize UI breaking changes for applications moving from Aero2 to Fluent.
Here are the broad categories of tasks that need to be done per control for this:
- Match resource usage in control styles with WinUI resources where possible
- Add animations for controls where required to match WinUI.
- Compare Fluent styles with Aero2 styles to match
3.a. Properties like HorizontalAlignment, VerticalAlignment
3.b. TemplateBinding comparison with Aero2 styles - Compare WPF Fluent styles with WinUI styles :
4.a. Convert ControlTemplate Triggers to VisualStates ( to simplify animation's and bring parity with WinUI styles )
4.b. Convert StaticResource's to DynamicResource for properties where customization is needed.
4.c. Define resources for CornerRadius, Thickness, etc. for the controls where it is needed
- • Expander
- • GridSplitter
- • GroupBox
- • ResizeGrip
- • Separator
- • ScrollBar
- • ScrollViewer
- • Window
- • Button
- • RepeatButton
- • TreeView
- • Calendar
- • ContextMenu
- • Menu
- • ToolBar
- • CheckBox
- • ListBox
- • RadioButton
- • Slider
- • Frame
- • Hyperlink
- • Page
- • NavigationWindow
- • Label
- • ProgressBar
- • StatusBar
- • TextBlock
- • ToolTip
The following control styles are part of Presentation UI, hence we won't be working on these in the current task. There fore marking them as complete.
-
DocumentViewer -
FlowDocumentReader -
FlowDocumentScrollViewer -
StickyNoteControl -
InkCanvas
Related Issues:
These issues refer to the type of problems that we have in Fluent styles currently :
Reacted by robert-abeo and Felix Keck
Sub-issues
Collapse Sub-issuesSub-issues
Loading 9 sub-issues
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fields🏗 In Progress
Activity
dipeshmsft commentedon Feb 4, 2025
I would like to know others opinion on 4.a. and 4.b. Here are my thoughts on the above points:
Point 4.a:
ControlTemplate.TriggerstoVisualStateswill bring parity in WPF and WinUI Fluent styles.Triggersto handle changes for Hover / Pressed states, etc. I am guessing this will make it harder for apps to migrate to new theme as well.VisualStatesonly and property value updates are handled viaTriggers.Point 4.b:
StaticResourcestoDynamicResourcefor margin and padding, to allow customization in the way WinUI does it.StaticResourceas it is easy enough to customize the styles by just creating a new style based on default style and overriding the required setters./cc @dotnet/dotnet-wpf-triage @robert-abeo @MichaeIDietrich
robert-abeo commentedon Feb 4, 2025
Personally, I prefer Triggers compared to visual states. Triggers are just so much more intuitive and easy to use. However, they are not as powerful and can't be used in all cases.
I think this comes down to how you want to create the Fluent themes?
andreaCosm commentedon Feb 21, 2025
Thank you for your efforts, just found this ticket while trying to understand the new Fluent controls, having just switched to the newest version of WPF. I want single out that the tab control needs better states and contrast. There's no hover animation; the selection also doesn't seem update the color with selection either although I do see that working in the example. Are we supposed to use a specific background color with it?
dipeshmsft commentedon Feb 25, 2025
@andreaCosm, thanks for bringing this up, I have created a subissue for TabControl, can you add the above inputs there, for better tracking.
jroessel commentedon Nov 12, 2026
Commenting here so they might be turned into sub-issues, perhaps. If this is better as separate issues I can do that as well.
I've recently done a visual overhaul of a WPF application, taking inspiration from another in-house app that uses Material Design, but basically porting it over to Fluent Design because WPF had many controls already usable for Fluent. A few things stood out where the current state of the theme is not as nice to work with as I had hoped.