This project is read-only.

TimeElapsedButton/TimeRemainingButton and Foreground color

Topics: Windows 8 Xaml
Dec 22, 2013 at 6: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 6: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. :-)
Jan 17, 2014 at 11: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:

<Style TargetType="mmppf:TimeElapsedButton">
    <Setter Property="Foreground" Value="Yellow"/>
Sorry if I'm misunderstanding the problem; please let me know if this does not solve your problem.
May 14, 2014 at 4: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. :-)