Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > MediaPlayer > Hide playlist button

Not answered Hide playlist button

Feed from this thread
  • Edo Cof avatar

    Posted on May 21, 2010 (permalink)

    I can not hide playlist button. I don't see any need to show playlist button if there is just one item in playlist.

    I try to set IsPlaylistVisible to false, but the button is still visible.

    I am talking the button right next to FullScreen.

    Reply

  • Tina Stancheva Tina Stancheva admin's avatar

    Posted on May 27, 2010 (permalink)

    Hi Edo Cof,

    in order to hide the Playlist Button you will need to edit the template of the RadMediaPlayer and remove the following lines from the RadMediaPlayerStyle:
    <telerik:RadButton VerticalAlignment="Center" Width="42" Padding="5"
                Template="{StaticResource MediaPlayer_Button}"
                Command="telerikMedia:MediaCommands.TogglePlaylist">
        <StackPanel>
            <Rectangle Fill="{StaticResource MediaPlayer_ButtonBackgroundPath}" Stroke="{StaticResource MediaPlayer_ButtonBorderPath}" StrokeThickness="1" Height="3" Width="12"/>
            <Rectangle Fill="{StaticResource MediaPlayer_ButtonBackgroundPath}" Stroke="{StaticResource MediaPlayer_ButtonBorderPath}" StrokeThickness="1" Height="3" Margin="0 1" Width="12"/>
            <Rectangle Fill="{StaticResource MediaPlayer_ButtonBackgroundPath}" Stroke="{StaticResource MediaPlayer_ButtonBorderPath}" StrokeThickness="1" Height="3" Width="12"/>
        </StackPanel>
    </telerik:RadButton>

    I prepared an example illustrating this approach - I commented the above lines in it. Please take a look at it and let me know if it works for you.

    Greetings,
    Tina Stancheva
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.

    Reply

  • Brian Azzi avatar

    Posted on Aug 24, 2011 (permalink)

    Maybe this is a silly question, but how do I access that template / edit it? I don't have access to Blend, can this be done in VS 2010? (Sorry if it's a new user issue *grin*).

    Thanks,
    -Brian

    Reply

  • Tina Stancheva Tina Stancheva admin's avatar

    Posted on Aug 26, 2011 (permalink)

    Hi Brian Azzi,

    You can find the xaml file defining the default ControlTemplate of the RadMediaPlayer in the Themes solution in your installation folder. This article will get you started on how to modify a Telerik built-in theme.

    I also attached the latest style of the RadMediaPlayer and the RadMediaItem controls from the default Office_Black theme. I hope it helps you.

    Kind regards,
    Tina Stancheva
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

    Reply

  • Brian Azzi avatar

    Posted on Aug 26, 2011 (permalink)

    Very helpful information, thank you. : )  

    Reply

  • Brian Azzi avatar

    Posted on Aug 29, 2011 (permalink)

    Ok... so I'm hiding the playlist button successfully on the player, but it still shows up when I switch to fullscreen mode. What template would I override to hide it in fullscreen mode as well?

    Reply

  • Kiril Stanoev Kiril Stanoev avatar

    Posted on Sep 1, 2011 (permalink)

    Hello Brian,

    Once you edit the style of RadMediaPlayer, you need to edit the style of PopupMediaPlayerWrapper as well. While in PopupMediaPlayerWrapper, you should navigate to LayoutRoot > VideoControlsPanel > StackPanel > PlaylistToggle. The PlaylistToggle is the button you want to collapse.



    Please have a look at the attached project for further reference.

    Kind regards,
    Kiril Stanoev
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

    Attached files

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > MediaPlayer > Hide playlist button
Related resources for "Hide playlist button"

Silverlight MediaPlayer Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]