Table of Contents

Class AbstractUnboundMediaElementControlBindingModel<TView, TViewModel, TControl>

Namespace
Whipstaff.Wpf.ViewToViewModelBindings.System.Windows.Controls
Assembly
Whipstaff.Wpf.dll

A class that contains Viewmodel bindings for the MediaElement control.

public abstract class AbstractUnboundMediaElementControlBindingModel<TView, TViewModel, TControl> : AbstractUnboundFrameworkElementControlBindingModel<TView, TViewModel, TControl>, IControlBindingModel<TView, TViewModel> where TView : class, IViewFor<TViewModel> where TViewModel : class, IReactiveObject where TControl : MediaElement

Type Parameters

TView
TViewModel
TControl
Inheritance
AbstractControlBindingModel<TView, TViewModel, TControl>
AbstractUnboundUIElementControlBindingModel<TView, TViewModel, TControl>
AbstractUnboundMediaElementControlBindingModel<TView, TViewModel, TControl>
Implements
IControlBindingModel<TView, TViewModel>
Derived
Inherited Members

Constructors

AbstractUnboundMediaElementControlBindingModel(Expression<Func<TView, TControl>>)

protected AbstractUnboundMediaElementControlBindingModel(Expression<Func<TView, TControl>> viewExpression)

Parameters

viewExpression Expression<Func<TView, TControl>>

expression representing the control on the view to bind to.

Properties

Balance

Gets or sets the binding logic for Balance

public IOneOrTwoWayBind<TViewModel, double>? Balance { get; init; }

Property Value

IOneOrTwoWayBind<TViewModel, double>

BufferingProgress

Gets or sets the binding logic for BufferingProgress

public IOneWayBind<TViewModel, double>? BufferingProgress { get; init; }

Property Value

IOneWayBind<TViewModel, double>

CanPause

Gets or sets the binding logic for CanPause

public IOneWayBind<TViewModel, bool>? CanPause { get; init; }

Property Value

IOneWayBind<TViewModel, bool>

Clock

Gets or sets the binding logic for Clock

public IOneOrTwoWayBind<TViewModel, MediaClock>? Clock { get; init; }

Property Value

IOneOrTwoWayBind<TViewModel, MediaClock>

DownloadProgress

Gets or sets the binding logic for DownloadProgress

public IOneWayBind<TViewModel, double>? DownloadProgress { get; init; }

Property Value

IOneWayBind<TViewModel, double>

HasAudio

Gets or sets the binding logic for HasAudio

public IOneWayBind<TViewModel, bool>? HasAudio { get; init; }

Property Value

IOneWayBind<TViewModel, bool>

HasVideo

Gets or sets the binding logic for HasVideo

public IOneWayBind<TViewModel, bool>? HasVideo { get; init; }

Property Value

IOneWayBind<TViewModel, bool>

IsBuffering

Gets or sets the binding logic for IsBuffering

public IOneWayBind<TViewModel, bool>? IsBuffering { get; init; }

Property Value

IOneWayBind<TViewModel, bool>

IsMuted

Gets or sets the binding logic for IsMuted

public IOneOrTwoWayBind<TViewModel, bool>? IsMuted { get; init; }

Property Value

IOneOrTwoWayBind<TViewModel, bool>

LoadedBehavior

Gets or sets the binding logic for LoadedBehavior

public IOneOrTwoWayBind<TViewModel, MediaState>? LoadedBehavior { get; init; }

Property Value

IOneOrTwoWayBind<TViewModel, MediaState>

NaturalDuration

Gets or sets the binding logic for NaturalDuration

public IOneWayBind<TViewModel, Duration>? NaturalDuration { get; init; }

Property Value

IOneWayBind<TViewModel, Duration>

NaturalVideoHeight

Gets or sets the binding logic for NaturalVideoHeight

public IOneWayBind<TViewModel, int>? NaturalVideoHeight { get; init; }

Property Value

IOneWayBind<TViewModel, int>

NaturalVideoWidth

Gets or sets the binding logic for NaturalVideoWidth

public IOneWayBind<TViewModel, int>? NaturalVideoWidth { get; init; }

Property Value

IOneWayBind<TViewModel, int>

Position

Gets or sets the binding logic for Position

public IOneOrTwoWayBind<TViewModel, TimeSpan>? Position { get; init; }

Property Value

IOneOrTwoWayBind<TViewModel, TimeSpan>

ScrubbingEnabled

Gets or sets the binding logic for ScrubbingEnabled

public IOneOrTwoWayBind<TViewModel, bool>? ScrubbingEnabled { get; init; }

Property Value

IOneOrTwoWayBind<TViewModel, bool>

Source

Gets or sets the binding logic for Source

public IOneOrTwoWayBind<TViewModel, Uri>? Source { get; init; }

Property Value

IOneOrTwoWayBind<TViewModel, Uri>

SpeedRatio

Gets or sets the binding logic for SpeedRatio

public IOneOrTwoWayBind<TViewModel, double>? SpeedRatio { get; init; }

Property Value

IOneOrTwoWayBind<TViewModel, double>

Stretch

Gets or sets the binding logic for Stretch

public IOneOrTwoWayBind<TViewModel, Stretch>? Stretch { get; init; }

Property Value

IOneOrTwoWayBind<TViewModel, Stretch>

StretchDirection

Gets or sets the binding logic for StretchDirection

public IOneOrTwoWayBind<TViewModel, StretchDirection>? StretchDirection { get; init; }

Property Value

IOneOrTwoWayBind<TViewModel, StretchDirection>

UnloadedBehavior

Gets or sets the binding logic for UnloadedBehavior

public IOneOrTwoWayBind<TViewModel, MediaState>? UnloadedBehavior { get; init; }

Property Value

IOneOrTwoWayBind<TViewModel, MediaState>

Volume

Gets or sets the binding logic for Volume

public IOneOrTwoWayBind<TViewModel, double>? Volume { get; init; }

Property Value

IOneOrTwoWayBind<TViewModel, double>

Methods

ApplyBindings(TView, TViewModel, Action<IDisposable>)

Applies the binding between the view and the view model.

public override void ApplyBindings(TView view, TViewModel viewModel, Action<IDisposable> registerForDisposalAction)

Parameters

view TView

The view.

viewModel TViewModel

The viewmodel.

registerForDisposalAction Action<IDisposable>

ApplyBindings(TView, TViewModel, CompositeDisposable)

Applies the binding between the view and the view model.

public override void ApplyBindings(TView view, TViewModel viewModel, CompositeDisposable compositeDisposable)

Parameters

view TView

The view.

viewModel TViewModel

The viewmodel.

compositeDisposable CompositeDisposable

The disposable container to register disposals against.