TimeElapsedButton/TimeRemainingButton and Foreground color

Topics: Windows 8 Xaml
Dec 22, 2013 at 5:37 PM
For the life of me, I can't get these to take a Foreground property and actually result in a changed color. Is this property not wired up?
Dec 22, 2013 at 5:46 PM
Digging in with XamlSpy shows the inner TextBlock gets a Foreground that's different from what I set. It'd be nice to be able to change that from my theme file. :-)
Coordinator
Jan 17, 2014 at 10:10 PM
You should be able to set this via the style. For example, using implicit styles you can change the time elapsed button text by adding to your app.xaml:
xmlns:mmppf="using:Microsoft.PlayerFramework"

<Style TargetType="mmppf:TimeElapsedButton">
    <Setter Property="Foreground" Value="Yellow"/>
</Style>
Sorry if I'm misunderstanding the problem; please let me know if this does not solve your problem.
May 14, 2014 at 3:51 AM
Sorry, it took me forever to find this thread again.

I'm trying to set it via an inline property in my style template for the ControlPanel. It seems to have a life of its own after that point.

I've also tried to set it as a style, targeting mmppf:TimeElapsedButton (and mmppf:DurationButton) in the .Resources of the player's immediate container. And I'm currently trying to style both buttons in my VideoPlayerStyle.xaml file that is included in my View where I actually use the controls.

I definitely feel like I'm missing something, but I'm not sure what. :-)