Skip to main content
.NET Framework Class Library
MediaElementScriptCommand Event

Occurs when a script command is encountered in the media.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation
Syntax
Public Event ScriptCommand As [%$TOPIC/ms597966_en-us_VS_110_1_0_0_0_0%](Of [%$TOPIC/ms597966_en-us_VS_110_1_0_0_0_1%])
public event [%$TOPIC/ms597966_en-us_VS_110_1_0_1_0_0%]<[%$TOPIC/ms597966_en-us_VS_110_1_0_1_0_1%]> ScriptCommand
public:
 event [%$TOPIC/ms597966_en-us_VS_110_1_0_2_0_0%]<[%$TOPIC/ms597966_en-us_VS_110_1_0_2_0_1%]^>^ ScriptCommand {
	void add ([%$TOPIC/ms597966_en-us_VS_110_1_0_2_0_2%]<[%$TOPIC/ms597966_en-us_VS_110_1_0_2_0_3%]^>^ value);
	void remove ([%$TOPIC/ms597966_en-us_VS_110_1_0_2_0_4%]<[%$TOPIC/ms597966_en-us_VS_110_1_0_2_0_5%]^>^ value);
}
member ScriptCommand : IEvent<[%$TOPIC/ms597966_en-us_VS_110_1_0_3_0_0%]<[%$TOPIC/ms597966_en-us_VS_110_1_0_3_0_1%]>,
    [%$TOPIC/ms597966_en-us_VS_110_1_0_3_0_2%]>
JScript does not support events.
<object ScriptCommand="[%$TOPIC/ms597966_en-us_VS_110_1_0_5_0_0%]<[%$TOPIC/ms597966_en-us_VS_110_1_0_5_0_1%]>" .../>
Routed Event Information

Identifier field

ScriptCommandEvent

Routing strategy

Bubbling

Delegate

EventHandler, with constraint of MediaScriptCommandRoutedEventArgs

Version Information

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1