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.
|ApplyAnimationClock(DependencyProperty, AnimationClock, HandoffBehavior)|
|BeginAnimation(DependencyProperty, AnimationTimeline, HandoffBehavior)|
Creates a modifiable clone of this, making deep copies of this object's values. When copying dependency properties, this method copies resource references and data bindings (but they might no longer resolve) but not animations or their current values.
Creates a modifiable clone of thisobject, making deep copies of this object's current values. Resource references, data bindings, and animations are not copied, but their current values are.
Re-evaluates the effective value for the specified dependency property(Inherited from DependencyObject.)
Returns the local value of a dependency property, if it exists. (Inherited from DependencyObject.)
Sets the value of a dependency property without changing its value source. (Inherited from DependencyObject.)
Sets the local value of a dependency property, specified by its dependency property identifier. (Inherited from DependencyObject.)
Returns a value that indicates whether serialization processes should serialize the value for the provided dependency property.(Inherited from DependencyObject.)
Returns a string that represents the current object.(Inherited from Object.)
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.