Plays a media file. If the media is a video file, thedraws it to the specified rectangle.
Assembly: PresentationCore (in PresentationCore.dll)
Gets the axis-aligned bounds of the drawing's contents. (Inherited from Drawing.)
Gets a value that indicates whether the object can be made unmodifiable. (Inherited from Freezable.)
Gets a value that indicates whether the object is currently modifiable. (Inherited from Freezable.)
Gets a value that indicates whether this instance is currently sealed (read-only).(Inherited from DependencyObject.)
Gets or sets the media player associated with the drawing.
Gets or sets the rectangular area in which the video is drawn.
Although you can declare an instance of this class in XAML, you cannot load and play its media without using code, because of the dependency on the MediaPlayer class and in particular the Open and Play methods. To play media in XAML only, use a MediaElement.
Despite its name, acan be used to play audio.
Performance Note: A provides fewer features then an MediaElement: does not support layout, input, or focus. However, because it does not support these features, provides performance benefits making them ideal for describing backgrounds, clip art, and for low-level drawing with Visual objects. See Drawing Objects Overview for more information.
Available since 3.0
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.