Skip to content

ViewLayoutAttribute(Type) constructor

Defined in

Type: ViewLayoutAttribute Namespace: ReactiveUI.Avalonia Assembly: ReactiveUI.Avalonia.dll

Applies to

net11.0, net10.0

public ViewLayoutAttribute(Type layoutType)

View source

Summary: Declares the layout a LayoutViewHost wraps around a routed view.

Parameters

NameTypeDescription
layoutTypeTypeThe layout view type, which must derive from ContentControl, or the type of the layout's view model.

Remarks

        Apply the attribute to a view or to its view model. An attribute on the view takes precedence.