Table of Contents

Class ViewBox

Namespace
Nalu
Assembly
Nalu.Maui.Layouts.dll

ViewBox is container that is used to display a single view.

[ContentProperty("Content")]
public class ViewBox : ClippableViewBoxBase, INotifyPropertyChanged, IVisualTreeElement, IEffectControlProvider, IToolTipElement, IContextFlyoutElement, IAnimatable, IViewController, IVisualElementController, IElementController, IGestureController, IGestureRecognizers, IPropertyMapperView, IHotReloadableView, IReplaceableView, ISafeAreaView, IViewBox, IContentView, IView, IElement, ITransform, IPadding, ICrossPlatformLayout
Inheritance
ViewBox
Implements
Derived
Inherited Members

Remarks

Can be used as a replacement of ContentView (which as-of .NET 8 uses Compatibility.Layout).

Fields

ContentProperty

Bindable property for Content property.

public static readonly BindableProperty ContentProperty

Field Value

BindableProperty

Properties

Content

Gets or sets the content of the layout.

public IView? Content { get; set; }

Property Value

IView

Methods

GetContent()

Gets the content.

protected override IView? GetContent()

Returns

IView

SetContent(IView?)

Sets the content.

protected override void SetContent(IView? content)

Parameters

content IView

The new content.