This project is read-only.

How to Change Font Color

Topics: Windows 8 Xaml
Nov 23, 2012 at 6:46 AM

I want to change font color of the remaining time on the seekbar?

Can you please help me how can I change the color?

I am using XAML/C#

Nov 27, 2012 at 6:38 PM

The recommended way would be to do this in Xaml by creating a custom template for the controlpanel. After doing this, to change the slider's color you can set the Timeline control's SliderStyle property to a style. There are various properties on the Slider (SeekableSlider is the name of the control) that can control through the style to change the colors used. To change the color on the remaining time text, you can do the same thing but set the Foreground property on the TimeRemainingButton control.

As an example of this, you can also refer to the EntertainmentTheme.xaml file shipped with the player framework for an example of altering the default style of the player. Also look at EntertainmentAppPage.xaml in the samples to see how to wire this up to your app.

Hopefully this helps, Tim