Class ReactiveImageCell<TViewModel>
- Namespace
- ReactiveUI.Maui
- Assembly
- ReactiveUI.Maui.dll
This is an ImageCell that is also an IViewFor<T>.
[RequiresDynamicCode("ReactiveImageCell uses methods that require dynamic code generation")]
[RequiresUnreferencedCode("ReactiveImageCell uses methods that may require unreferenced code")]
[Obsolete("ListView and its cells are obsolete in .NET MAUI, please use CollectionView with a DataTemplate and a ReactiveContentView-based view instead. This will be removed in a future release.")]
public class ReactiveImageCell<TViewModel> : ImageCell, INotifyPropertyChanged, IElementController, IEffectControlProvider, IToolTipElement, IContextFlyoutElement, IElement, ICellController, IVisualTreeElement, IViewFor<TViewModel>, IViewFor, IActivatableView where TViewModel : class
Type Parameters
TViewModelThe type of the view model.
- Inheritance
-
ReactiveImageCell<TViewModel>
- Implements
-
IViewFor<TViewModel>
- Inherited Members
- Extension Methods
Constructors
ReactiveImageCell()
public ReactiveImageCell()
Fields
ViewModelProperty
The view model bindable property.
public static readonly BindableProperty ViewModelProperty
Field Value
Properties
ViewModel
Gets or sets the strongly typed view model. Override this property to integrate with the platform's binding system.
public TViewModel? ViewModel { get; set; }
Property Value
- TViewModel
Methods
OnBindingContextChanged()
Invoked whenever the binding context of the element changes. Implement this method to add class handling for this event.
protected override void OnBindingContextChanged()
Remarks
Implementors must call the base method.