New to Telerik UI for .NET MAUIStart a free 30-day trial

Provides a base class for behaviors with enhanced bindable object management.

Definition

Namespace:Telerik.Maui.Controls

Assembly:Telerik.Maui.Controls.dll

Syntax:

C#
public class BehaviorBase : Behavior

Inheritance: objectBehaviorBase

Derived Classes: RadEventToCommandBehavior

Constructors

C#
public BehaviorBase()

Properties

AttachedBindable

BindableObject

Gets or sets the bindable object that this behavior is attached to.

C#
public BindableObject AttachedBindable { get; set; }
Property Value:

The attached bindable object.

Methods

Called when the behavior is attached to a bindable object.

C#
protected override void OnAttachedTo(BindableObject bindable)
Parameters:bindableBindableObject

The bindable object to attach to.

Called when the behavior is being detached from a bindable object.

C#
protected override void OnDetachingFrom(BindableObject bindable)
Parameters:bindableBindableObject

The bindable object to detach from.