dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.26k stars 1.76k forks source link

[WINDOWS] Setting BackgroundColor for Slider updates the Maximum Track Color #25921

Open NafeelaNazhir opened 3 days ago

NafeelaNazhir commented 3 days ago

Description

When the BackgroundColor is set, it also modifies the Maximum TrackColor, even if the Maximum TrackColor is explicitly set to a different color.

https://github.com/user-attachments/assets/99dd7779-7fbf-46da-aff0-a50a2da5081e

Steps to Reproduce

  1. Click Maximum Track Color Button.
  2. Then Click Background Color Button.
  3. Observe Background Color, it updates in track colour.
  4. When Hovering Over the Track, Track Color Will Show

Link to public reproduction project repository

https://github.com/user-attachments/files/17801132/SliderPage.2.zip

Version with bug

9.0.10 SR1

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

No response

Affected platforms

Windows

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

kevinxufei commented 2 days ago

I can repro this issue at Windows platform on the latest 17.13 P1(9.0.10 & 9.0.0).