Class AbstractUnboundWindowControlBindingModel<TView, TViewModel, TControl>
- Namespace
- Whipstaff.Wpf.ViewToViewModelBindings.System.Windows
- Assembly
- Whipstaff.Wpf.dll
A class that contains Viewmodel bindings for the Window control.
public abstract class AbstractUnboundWindowControlBindingModel<TView, TViewModel, TControl> : AbstractUnboundContentControlControlBindingModel<TView, TViewModel, TControl>, IControlBindingModel<TView, TViewModel> where TView : class, IViewFor<TViewModel> where TViewModel : class, IReactiveObject where TControl : Window
Type Parameters
TView
TViewModel
TControl
- Inheritance
-
AbstractControlBindingModel<TView, TViewModel, TControl>AbstractUnboundUIElementControlBindingModel<TView, TViewModel, TControl>AbstractUnboundFrameworkElementControlBindingModel<TView, TViewModel, TControl>AbstractUnboundControlControlBindingModel<TView, TViewModel, TControl>AbstractUnboundContentControlControlBindingModel<TView, TViewModel, TControl>AbstractUnboundWindowControlBindingModel<TView, TViewModel, TControl>
- Implements
-
IControlBindingModel<TView, TViewModel>
- Derived
- Inherited Members
Constructors
AbstractUnboundWindowControlBindingModel(Expression<Func<TView, TControl>>)
Initializes a new instance of the AbstractUnboundWindowControlBindingModel<TView, TViewModel, TControl> class.
protected AbstractUnboundWindowControlBindingModel(Expression<Func<TView, TControl>> viewExpression)
Parameters
viewExpression
Expression<Func<TView, TControl>>expression representing the control on the view to bind to.
Properties
AllowsTransparency
Gets or sets the binding logic for AllowsTransparency
public IOneOrTwoWayBind<TViewModel, bool>? AllowsTransparency { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, bool>
DialogResult
Gets or sets the binding logic for DialogResult
public IOneOrTwoWayBind<TViewModel, bool?>? DialogResult { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, bool?>
Icon
Gets or sets the binding logic for Icon
public IOneOrTwoWayBind<TViewModel, ImageSource>? Icon { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, ImageSource>
IsActive
Gets or sets the binding logic for IsActive
public IOneWayBind<TViewModel, bool>? IsActive { get; init; }
Property Value
- IOneWayBind<TViewModel, bool>
Left
Gets or sets the binding logic for Left
public IOneOrTwoWayBind<TViewModel, double>? Left { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, double>
OwnedWindows
Gets or sets the binding logic for OwnedWindows
public IOneWayBind<TViewModel, WindowCollection>? OwnedWindows { get; init; }
Property Value
- IOneWayBind<TViewModel, WindowCollection>
Owner
Gets or sets the binding logic for Owner
public IOneOrTwoWayBind<TViewModel, Window>? Owner { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, Window>
ResizeMode
Gets or sets the binding logic for ResizeMode
public IOneOrTwoWayBind<TViewModel, ResizeMode>? ResizeMode { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, ResizeMode>
RestoreBounds
Gets or sets the binding logic for RestoreBounds
public IOneWayBind<TViewModel, Rect> RestoreBounds { get; init; }
Property Value
- IOneWayBind<TViewModel, Rect>
ShowActivated
Gets or sets the binding logic for ShowActivated
public IOneOrTwoWayBind<TViewModel, bool>? ShowActivated { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, bool>
ShowInTaskbar
Gets or sets the binding logic for ShowInTaskbar
public IOneOrTwoWayBind<TViewModel, bool>? ShowInTaskbar { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, bool>
SizeToContent
Gets or sets the binding logic for SizeToContent
public IOneOrTwoWayBind<TViewModel, SizeToContent>? SizeToContent { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, SizeToContent>
TaskbarItemInfo
Gets or sets the binding logic for TaskbarItemInfo
public IOneOrTwoWayBind<TViewModel, TaskbarItemInfo>? TaskbarItemInfo { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, TaskbarItemInfo>
Title
Gets or sets the binding logic for Title
public IOneOrTwoWayBind<TViewModel, string>? Title { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, string>
Top
Gets or sets the binding logic for Top
public IOneOrTwoWayBind<TViewModel, double>? Top { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, double>
Topmost
Gets or sets the binding logic for Topmost
public IOneOrTwoWayBind<TViewModel, bool>? Topmost { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, bool>
WindowStartupLocation
Gets or sets the binding logic for WindowStartupLocation
public IOneOrTwoWayBind<TViewModel, WindowStartupLocation>? WindowStartupLocation { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, WindowStartupLocation>
WindowState
Gets or sets the binding logic for WindowState
public IOneOrTwoWayBind<TViewModel, WindowState>? WindowState { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, WindowState>
WindowStyle
Gets or sets the binding logic for WindowStyle
public IOneOrTwoWayBind<TViewModel, WindowStyle>? WindowStyle { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, WindowStyle>
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
TViewThe view.
viewModel
TViewModelThe 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
TViewThe view.
viewModel
TViewModelThe viewmodel.
compositeDisposable
CompositeDisposableThe disposable container to register disposals against.