Language
Edit

MediaPlayerElement Class

Definition

Wpf-enabled wrapper for Windows.UI.Xaml.Controls.MediaPlayerElement

public class MediaPlayerElement : Microsoft.Toolkit.Wpf.UI.XamlHost.WindowsXamlHostBase
type MediaPlayerElement = class
    inherit WindowsXamlHostBase
Public Class MediaPlayerElement
Inherits WindowsXamlHostBase
Inheritance
MediaPlayerElement

Constructors

Name Description
MediaPlayerElement()

Initializes a new instance of the MediaPlayerElement class, a Wpf-enabled wrapper for Windows.UI.Xaml.Controls.MediaPlayerElement

MediaPlayerElement(String)

Initializes a new instance of the MediaPlayerElement class, a Wpf-enabled wrapper for Windows.UI.Xaml.Controls.MediaPlayerElement.

Properties

Name Description
AreTransportControlsEnabled

Gets or sets a value indicating whether Windows.UI.Xaml.Controls.MediaPlayerElement.AreTransportControlsEnabled

AreTransportControlsEnabledProperty

Gets Windows.UI.Xaml.Controls.MediaPlayerElement.AreTransportControlsEnabledProperty

AutoPlay

Gets or sets a value indicating whether Windows.UI.Xaml.Controls.MediaPlayerElement.AutoPlay

AutoPlayProperty

Gets Windows.UI.Xaml.Controls.MediaPlayerElement.AutoPlayProperty

ChildInternal

Gets or sets the root UWP XAML element displayed in the WPF control instance.

(Inherited from WindowsXamlHostBase)
IsDisposed

Gets a value indicating whether this wrapper control instance been disposed

(Inherited from WindowsXamlHostBase)
IsFullWindow

Gets or sets a value indicating whether Windows.UI.Xaml.Controls.MediaPlayerElement.IsFullWindow

IsFullWindowProperty

Gets Windows.UI.Xaml.Controls.MediaPlayerElement.IsFullWindowProperty

MediaPlayer

Gets Windows.UI.Xaml.Controls.MediaPlayerElement.MediaPlayer

PosterSource

Gets or sets Windows.UI.Xaml.Controls.MediaPlayerElement.PosterSource

PosterSourceProperty

Gets Windows.UI.Xaml.Controls.MediaPlayerElement.PosterSourceProperty

Source

Gets or sets Windows.UI.Xaml.Controls.MediaPlayerElement.Source

SourceProperty

Gets Windows.UI.Xaml.Controls.MediaPlayerElement.SourceProperty

Stretch

Gets or sets Windows.UI.Xaml.Controls.MediaPlayerElement.Stretch

StretchProperty

Gets Windows.UI.Xaml.Controls.MediaPlayerElement.StretchProperty

TransportControls

Gets or sets Windows.UI.Xaml.Controls.MediaPlayerElement.TransportControls

Methods

Name Description
ArrangeOverride(Size)

Arranges wrapped UWP XAML content using passed in size constraint

(Inherited from WindowsXamlHostBase)
Bind(String, DependencyProperty, DependencyProperty, Object, BindingDirection)

Binds this wrapper object's exposed WPF DependencyProperty with the wrapped UWP object's DependencyProperty for what effectively works as a regular one- or two-way binding.

(Inherited from WindowsXamlHostBase)
BuildWindowCore(HandleRef)

Creates Windows.UI.Xaml.Application object, wrapped Windows.UI.Xaml.Hosting.DesktopWindowXamlSource instance; creates and sets root UWP XAML element on Windows.UI.Xaml.Hosting.DesktopWindowXamlSource.

(Inherited from WindowsXamlHostBase)
DestroyWindowCore(HandleRef)

WPF framework request to destroy control window. Cleans up the HwndIslandSite created by DesktopWindowXamlSource

(Inherited from WindowsXamlHostBase)
Dispose(Boolean)

WindowsXamlHost Dispose

(Inherited from WindowsXamlHostBase)
GetUwpInternalObject()

Exposes ChildInternal without exposing its actual Type.

(Inherited from WindowsXamlHostBase)
HasFocusWithinCore() (Inherited from WindowsXamlHostBase)
MeasureOverride(Size)

Measures wrapped UWP XAML content using passed in size constraint

(Inherited from WindowsXamlHostBase)
OnChildChanged()

Called when the property <seealso cref="P:Microsoft.Toolkit.Wpf.UI.XamlHost.WindowsXamlHostBase.ChildInternal"></seealso> has changed.

(Inherited from WindowsXamlHostBase)
OnGotFocus(RoutedEventArgs)

Override for OnGotFocus that passes NavigateFocus on to the DesktopXamlSource instance

(Inherited from WindowsXamlHostBase)
OnInitialized(EventArgs) System.Windows.Interop.HwndHost.OnInitialized(System.EventArgs)
SetContent()

The default implementation of SetContent applies ChildInternal to desktopWindowXamSource.Content. Override this method if that shouldn't be the case. For example, override if your control should be a child of another WindowsXamlHostBase-based control.

(Inherited from WindowsXamlHostBase)
SetMediaPlayer(MediaPlayer)

Windows.UI.Xaml.Controls.MediaPlayerElement.SetMediaPlayer(Windows.Media.Playback.MediaPlayer)

TabIntoCore(TraversalRequest)

Process Tab from host framework

(Inherited from WindowsXamlHostBase)
WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean) (Inherited from WindowsXamlHostBase)

Events

Name Description
ChildChanged

Fired when WindowsXamlHost root UWP XAML content has been updated

(Inherited from WindowsXamlHostBase)

Applies to