You are developing a Silverlight 4 application. You need to add a MediaElement control that handles when the media has finished playing. Which XAML fragment should you use?
A.
<MediaElement x:Name=”MediaElement1″ AutoPlay=”True” MediaEnded=”MediaElement1_MediaEnded”/>
B.
<MediaElement x:Name=”MediaElement1″ AutoPlay=”True” MediaOpened=”MediaElement1_MediaOpened”/>
C.
<MediaElement x:Name=”MediaElement1″ AutoPlay=”True” MarkerReached=”MediaElement1_MarkerReached”/>
D.
<MediaElement x:Name=”MediaElement1″ AutoPlay=”True” CurrentStateChanged=”MediaElement1_CurrentStateChanged” />