如何隐藏 MediaPlayerElement 的 ProgressBar?

How to hide MediaPlayerElement's ProgressBar?

缓冲在线媒体时,MediaPlayerElement 始终显示 ProgressBar。我想隐藏它并使用我自己的。 如何?谢谢

我修改了MediaTransportControls的样式,设置 缓冲时 "BufferingProgressBar.Visibility" 到 "Collapse"。

<VisualStateGroup x:Name="MediaStates">
    <VisualState x:Name="Normal" />
    <VisualState x:Name="Buffering">
        <VisualState.Setters>
            <Setter Target="BufferingProgressBar.Visibility" Value="Collapse" />
        </VisualState.Setters>
    </VisualState>
    <VisualState x:Name="Loading">
        <VisualState.Setters>
            <Setter Target="BufferingProgressBar.Visibility" Value="Collapse" />
        </VisualState.Setters>

        <Storyboard>
            <DoubleAnimation Storyboard.TargetName="ProgressSlider"
                Storyboard.TargetProperty="Opacity"
                To="0"
                Duration="0" />
            <DoubleAnimation Storyboard.TargetName="MediaControlsCommandBar"
                Storyboard.TargetProperty="Opacity"
                To="0"
                Duration="0" />
        </Storyboard>
    </VisualState>

</VisualStateGroup>