C# Class AvalonStudio.Controls.ViewModelViewHost

This content control will automatically load the View associated with the ViewModel property and display it. This control is very useful inside a DataTemplate to display the View associated with a ViewModel.
Inheritance: Avalonia.Controls.Primitives.TemplatedControl, IViewFor, IEnableLogger, IActivationForViewFetcher
Afficher le fichier Open project: VitalElement/AvalonStudio

Méthodes publiques

Свойство Type Description
ContentProperty StyledProperty
DefaultContentProperty AvaloniaProperty
ViewContractObservableProperty AvaloniaProperty
ViewModelProperty AvaloniaProperty

Méthodes publiques

Méthode Description
GetActivationForView ( IActivatable view ) : IObservable
GetAffinityForView ( Type view ) : int

Méthodes protégées

Méthode Description
OnDataContextChanged ( ) : void

Private Methods

Méthode Description
somethingChanged ( IAvaloniaObject dependencyObject, bool changed ) : void

Method Details

GetActivationForView() public méthode

public GetActivationForView ( IActivatable view ) : IObservable
view IActivatable
Résultat IObservable

GetAffinityForView() public méthode

public GetAffinityForView ( Type view ) : int
view System.Type
Résultat int

OnDataContextChanged() protected méthode

protected OnDataContextChanged ( ) : void
Résultat void

Property Details

ContentProperty public_oe static_oe property

public static StyledProperty ContentProperty
Résultat StyledProperty

DefaultContentProperty public_oe static_oe property

public static AvaloniaProperty DefaultContentProperty
Résultat AvaloniaProperty

ViewContractObservableProperty public_oe static_oe property

public static AvaloniaProperty ViewContractObservableProperty
Résultat AvaloniaProperty

ViewModelProperty public_oe static_oe property

public static AvaloniaProperty ViewModelProperty
Résultat AvaloniaProperty