-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
Description
If you look at upstream WinUI3 you will see it's using ToolTipForegroundBrush and other resources WITH the Brush suffix.
However, here in WPF, we are using the OLD resource name/key that was replaced.
wpf/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Styles/ToolTip.xaml
Lines 17 to 18 in cc2eee2
| <Setter Property="Foreground" Value="{DynamicResource ToolTipForeground}" /> | |
| <Setter Property="Background" Value="{DynamicResource ToolTipBackground}" /> |
(Note WinUI3 keeps the old resource keys only for compatibility; but we shouldn't release with the old keys).
Resource keys are one of, if not the most important reason, WPF's Fluent2 theme should have been based on upstream code directly from the start (the open source library you based off was already out-of-date and wasn't a clean port to begin with). We are going to find issues with the control templates as well but those can be changed somewhat after the fact. Keys are locked.
Please, devote the manpower to review all resources and re-align with upstream. ToolTip here is only an example.
Reproduction Steps
Just review the styles
Expected behavior
I believe the Brush and Color suffixes are the current standard for resources like this. (The vast majority of other resources also end with the type name Thickness, etc.)
Actual behavior
Wrong resource keys
Regression?
No response
Known Workarounds
No response
Impact
No response
Configuration
No response
Other information
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
Status