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
Show file Open project: VitalElement/AvalonStudio

Public Properties

Property Type Description
ContentProperty StyledProperty
DefaultContentProperty AvaloniaProperty
ViewContractObservableProperty AvaloniaProperty
ViewModelProperty AvaloniaProperty

Public Methods

Method Description
GetActivationForView ( IActivatable view ) : IObservable
GetAffinityForView ( Type view ) : int

Protected Methods

Method Description
OnDataContextChanged ( ) : void

Private Methods

Method Description
somethingChanged ( IAvaloniaObject dependencyObject, bool changed ) : void

Method Details

GetActivationForView() public method

public GetActivationForView ( IActivatable view ) : IObservable
view IActivatable
return IObservable

GetAffinityForView() public method

public GetAffinityForView ( Type view ) : int
view System.Type
return int

OnDataContextChanged() protected method

protected OnDataContextChanged ( ) : void
return void

Property Details

ContentProperty public static property

public static StyledProperty ContentProperty
return StyledProperty

DefaultContentProperty public static property

public static AvaloniaProperty DefaultContentProperty
return AvaloniaProperty

ViewContractObservableProperty public static property

public static AvaloniaProperty ViewContractObservableProperty
return AvaloniaProperty

ViewModelProperty public static property

public static AvaloniaProperty ViewModelProperty
return AvaloniaProperty