Reputation: 1124
I am working on a player based on XamlCustomMediaTransportControls sample.
I need slider to be visible even when the controls are collapsed, and I simply made it a child of RootGrid
<Style TargetType="local:CustomMediaTransportControls">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="local:CustomMediaTransportControls">
<Grid x:Name="RootGrid" Background="Transparent">
<Slider x:Name="ProgressSlider"
Problem is that as soon as the ControlPanelFadeOut
VisualState is triggered, the ProgressSlider
stops updating.
Is there a way around this?
Upvotes: 0
Views: 46
Reputation: 8611
It's by design. When control fade out then all timers will be stopped so nothing will be updated.
If you don’t want control will be fadeout and always visible on the screen, then set this RS3 API ShowAndHideAutomatically property to false.
Upvotes: 1