Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

CurrentStateChanged Event

Occurs when the current state of media element changes.

Namespace:  Microsoft.Web.Media.SmoothStreaming
Assembly:  Microsoft.Web.Media.SmoothStreaming (in Microsoft.Web.Media.SmoothStreaming.dll)
 event RoutedEventHandler^ CurrentStateChanged {
	void add (RoutedEventHandler^ value);
	void remove (RoutedEventHandler^ value);

For more information, see Events (IIS Smooth Streaming).

The following examples shows a delegate that displays the new state using a text element.

    void SmoothPlayer_CurrentStateChanged(object sender, RoutedEventArgs e)
        OutputText.Text = (sender as SmoothStreamingMediaElement).CurrentState.ToString();


Supported in: 4

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.