Domanda

I see that the Song class only contains IsRated and Rating property with Set method. However, I see that the default music player application in WP7 has the ability to rate a song

So, how can I rate a Song ?

È stato utile?

Soluzione

Both Rating and IsRated are only get methods. This means you can get the value of the rating but you can't set it.

That can only be done by the default media player

For Rating http://msdn.microsoft.com/en-us/library/microsoft.xna.framework.media.song.rating.aspx

For IsRated http://msdn.microsoft.com/en-us/library/microsoft.xna.framework.media.song.israted.aspx

As you can see both only have get methods

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top