Fluent2 ToolTip Missing Some Lightweight Styling Resources Available in WinUI3 #9671
Labels
Bug
Product bug (most likely)
Investigate
Requires further investigation by the WPF team.
Win 11 Theming
Description
Fluent2's ToolTip is missing some lightweight styling resource that can be used to change common properties without re-templating. WPF just hardcodes these values. This is especially problematic for padding which is set across two different controls in the template instead of just one as per the standard.
Reproduction Steps
See current code with hard-coded values:
wpf/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Styles/ToolTip.xaml
Line 11 in cc2eee2
wpf/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Styles/ToolTip.xaml
Line 30 in cc2eee2
Expected behavior
WPF's Fluent2 implementation should follow upstream WinUI3 for ALL resources to ensure compatibility. This is a big task to review and align all the resource keys but I think it's needed.
See upstream:
https://github.com/microsoft/microsoft-ui-xaml/blob/aeed4c19e2fc7c2c093216a51b651f2f0890c930/src/controls/dev/CommonStyles/ToolTip_themeresources.xaml#L76-L77
Actual behavior
WPF's Fluent2 implementation has hardcoded values it shouldn't.
Regression?
No response
Known Workarounds
No response
Impact
No response
Configuration
No response
Other information
No response
The text was updated successfully, but these errors were encountered: