Bug 57787 - On UWP, setting the BackgroundColor of a Slider results in the slider rail/track not being displayed initially
Summary: On UWP, setting the BackgroundColor of a Slider results in the slider rail/tr...
Alias: None
Product: Forms
Classification: Xamarin
Component: Windows ()
Version: 2.3.5
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Paul DiPietro [MSFT]
Depends on:
Reported: 2017-06-27 12:35 UTC by John Hardman
Modified: 2017-08-24 19:57 UTC (History)
5 users (show)

Tags: UWP, Slider, BackgroundColor, ac
Is this bug a regression?: ---
Last known good build:

Screenshot showing Slider with rail/track not painted (89.30 KB, image/png)
2017-06-27 12:35 UTC, John Hardman

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description John Hardman 2017-06-27 12:35:43 UTC
Created attachment 23134 [details]
Screenshot showing Slider with rail/track not painted

On UWP, if the BackgroundColor of a Slider is set (e.g. to Color.White or Color.Yellow), the Slider rail/track is not displayed until the user hovers the mouse pointer over the Slider.

For example, the following code produces the Slider in the attached screenshot. The red arrow points to where the rail/track should be.

                Slider slider = new Slider();
                slider.BackgroundColor = Color.Yellow;
                slider.Maximum = 255;
                slider.Minimum = 0;
                slider.Value = 0;

I am using XF
Comment 1 Paul DiPietro [MSFT] 2017-06-28 14:11:42 UTC
Checked against the latest 2.3.6 nightly as well where the issue also exists.
Comment 2 Rui Marinho 2017-08-23 21:42:26 UTC
This should be fixed on 2.4.1-pre1
Comment 3 Samantha Houts [MSFT] 2017-08-24 19:57:37 UTC