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
Properties
Content
Gets or sets the content of the layout.
public IView? Content { get; set; }
Property Value
Methods
GetContent()
Gets the content.
protected override IView? GetContent()
Returns
SetContent(IView?)
Sets the content.
protected override void SetContent(IView? content)
Parameters
contentIViewThe new content.