Skip to main content

Microsoft Silverlight

MediaElement.Attributes throws an ArgumentNullExceptionRSS Feed

(0)

markheath
markheath

Member

Member

117 points

63 Posts

MediaElement.Attributes throws an ArgumentNullException

When I try to access the Attributes collection of my media element (after it has opened successfully), I always get an ArgumentNullException. Any suggestions?

This is the line of code that fails:  

foreach (MediaAttribute attribute in mediaElement.Attributes)

thanks

Mark

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities