Playlist extension. Events extension.

Mar 1, 2011 at 9:50 PM

Hello all,

 

I have the following question:

 

1. What if I want to add new items in the playlistitem, is there something I can do except changing the code of the SMF?

2. Can I somehow add events w/o changing the code, e.g. OnPlayButtonClicked.

 

Thank you.

Mar 1, 2011 at 11:39 PM

You can do all that by inheriting PlaylistItem and SMFPlayer. You won't need to change the code of SMF

Mar 2, 2011 at 5:15 PM

Idea with playlist is clear, but what about adding new events and assigning them to, let's say, player buttons? Should I simply get buttons from the template using GetTemplateChild and assign another click on them? What I want to be sure about is that my event will be the first thing executed after someone clicks on e.g. play button.

 

Thank you.

Mar 2, 2011 at 6:33 PM

Also, there is another question. Imagine situation when you need to assign player's playlist:

 

base.Playlist = Yourfunction.parse(params);

 

base playlist os of type ObservableCollection<PlaylistItem>, your playlist is of type ObservableCollection<InheritedPlaylistItem>, how do you convert one OC to another except iterrating through all the elements. Sorry for such lame questions, I must be missing something.

 

Thank you.