Table of Contents

Class ToggleTemplate

Namespace
Nalu
Assembly
Nalu.Maui.Layouts.dll

A ViewBox that uses a DataTemplate to render content based on a boolean value.

public class ToggleTemplate : TemplateBoxBase, INotifyPropertyChanged, IVisualTreeElement, IEffectControlProvider, IToolTipElement, IContextFlyoutElement, IAnimatable, IViewController, IVisualElementController, IElementController, IGestureController, IGestureRecognizers, IPropertyMapperView, IHotReloadableView, IReplaceableView, ISafeAreaView, IViewBox, IContentView, IView, IElement, ITransform, IPadding, ICrossPlatformLayout
Inheritance
ToggleTemplate
Implements
Inherited Members

Fields

ValueProperty

Bindable property for Value property.

public static readonly BindableProperty ValueProperty

Field Value

BindableProperty

WhenFalseProperty

Bindable property for WhenFalse property.

public static readonly BindableProperty WhenFalseProperty

Field Value

BindableProperty

WhenTrueProperty

Bindable property for WhenTrue property.

public static readonly BindableProperty WhenTrueProperty

Field Value

BindableProperty

Properties

Value

Gets or sets the value to determine which template to use.

public bool? Value { get; set; }

Property Value

bool?

WhenFalse

Gets or sets the DataTemplate to use when the value is false.

public DataTemplate? WhenFalse { get; set; }

Property Value

DataTemplate

WhenTrue

Gets or sets the DataTemplate to use when the value is true.

public DataTemplate? WhenTrue { get; set; }

Property Value

DataTemplate