pub struct ControlViewFor<V: IControlViewFor> { /* private fields */ }Expand description
A control of a class that implements IControlViewFor, as a view of ReactiveUI
(IViewFor<TViewModel> on the control).
Implementations§
Source§impl<V: IControlViewFor> ControlViewFor<V>
impl<V: IControlViewFor> ControlViewFor<V>
Sourcepub fn into_view_for_of(self: Rc<Self>) -> Rc<dyn IViewForOf<V::ViewModel>>
pub fn into_view_for_of(self: Rc<Self>) -> Rc<dyn IViewForOf<V::ViewModel>>
The view as IViewFor<TViewModel>.
Trait Implementations§
Source§impl<V: IControlViewFor> IActivatableView for ControlViewFor<V>
impl<V: IControlViewFor> IActivatableView for ControlViewFor<V>
Source§fn as_view_for(&self) -> Option<&dyn IViewFor>
fn as_view_for(&self) -> Option<&dyn IViewFor>
Source§fn as_notify_property_changed(
self: Rc<Self>,
) -> Option<Rc<dyn INotifyPropertyChanged>>
fn as_notify_property_changed( self: Rc<Self>, ) -> Option<Rc<dyn INotifyPropertyChanged>>
The change notification of the view, when it raises
PropertyChanged
(view as INotifyPropertyChanged); None by default. The property observation of the
view’s ViewModel uses it.Source§fn as_can_activate(&self) -> Option<&dyn ICanActivate>
fn as_can_activate(&self) -> Option<&dyn ICanActivate>
The view as an
ICanActivate, when it is one
(view as ICanActivate); None by default. CanActivateViewFetcher uses it.Source§impl<V: IControlViewFor> IViewControl for ControlViewFor<V>
impl<V: IControlViewFor> IViewControl for ControlViewFor<V>
Source§impl<V: IControlViewFor> IViewFor for ControlViewFor<V>
impl<V: IControlViewFor> IViewFor for ControlViewFor<V>
Source§fn view_model(&self) -> Option<Rc<dyn Any>>
fn view_model(&self) -> Option<Rc<dyn Any>>
The view model displayed by the view (the getter of
ViewModel).Source§impl<V: IControlViewFor> IViewForOf<<V as IControlViewFor>::ViewModel> for ControlViewFor<V>
impl<V: IControlViewFor> IViewForOf<<V as IControlViewFor>::ViewModel> for ControlViewFor<V>
Auto Trait Implementations§
impl<V> !RefUnwindSafe for ControlViewFor<V>
impl<V> !Send for ControlViewFor<V>
impl<V> !Sync for ControlViewFor<V>
impl<V> !UnwindSafe for ControlViewFor<V>
impl<V> Freeze for ControlViewFor<V>
impl<V> Unpin for ControlViewFor<V>
impl<V> UnsafeUnpin for ControlViewFor<V>where
ViewLink<V>: UnsafeUnpin,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more