Color.GetHue value return different value based on framework in WPF platform
- Dominant language
- C#
- Stars
- 7.7k
- Forks
- 1.3k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 61
Description
### Description
I created an application that includes a ColorHelper class which computes a color value for a SolidColorBrush based on its opacity. However, calling Color.GetHue returns slightly different values depending on the target framework (for example, .NET Framework 4.6.2 vs .NET Core), so the resulting color differs between builds. Please see the attached screenshot and sample project for reference.
[wpf-462-project.zip](https://github.com/user-attachments/files/23789880/wpf-462-project.zip)
[wpf-netcore-project.zip](https://github.com/user-attachments/files/23789881/wpf-netcore-project.zip)
### Reproduction Steps
Run the attached net462 and netcore samples.
Note the color value different in both sample due to Color.GetHue value.
### Expected behavior
Should return same color value for both 462 and netcore framework in Color.GetHue method.
### Actual behavior
Return different color value for 462 and netcore framework in Color.GetHue method.
### Regression?
_No response_
### Known Workarounds
_No response_
### Impact
_No response_
### Configuration
_No response_
### Other information
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.