Class ReactiveUserControl<TViewModel>
- Namespace
- ReactiveUI.Winforms
- Assembly
- ReactiveUI.Winforms.dll
This is an UserControl that is both and UserControl and has a ReactiveObject powers (i.e. you can call RaiseAndSetIfChanged).
public class ReactiveUserControl<TViewModel> : UserControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl, IViewFor<TViewModel>, IViewFor, IActivatableView where TViewModel : class
Type Parameters
TViewModel
The type of the view model.
- Inheritance
-
ReactiveUserControl<TViewModel>
- Implements
-
IViewFor<TViewModel>
- Inherited Members
- Extension Methods
Constructors
ReactiveUserControl()
Initializes a new instance of the ReactiveUserControl<TViewModel> class.
public ReactiveUserControl()
Properties
ViewModel
Gets or sets the ViewModel corresponding to this specific View. This should be a DependencyProperty if you're using XAML.
[Bindable(true)]
public TViewModel? ViewModel { get; set; }
Property Value
- TViewModel
Methods
Dispose(bool)
Clean up any resources being used.
protected override void Dispose(bool disposing)
Parameters
disposing
booltrue if managed resources should be disposed; otherwise, false.