Skip to main content
A newer version of this page is available. .

TreeListOptionsBehavior.AllowExpandAnimation Property

Gets or sets whether to use animation effects when expanding/collapsing nodes using the expand button.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v19.1.dll

Declaration

[DefaultValue(DefaultBoolean.Default)]
[XtraSerializableProperty]
public virtual DefaultBoolean AllowExpandAnimation { get; set; }

Property Value

Type Default Description
DefaultBoolean **Default**

True, to use animation effects; otherwise, False; Default uses the WindowsFormsSettings.AnimationMode static (Shared in VB) setting.

Available values:

Name Description
True

Corresponds to a Boolean value of true.

False

Corresponds to a Boolean value of false.

Default

The value is determined by the current object’s parent object setting (e.g., a control setting).

Property Paths

You can access this nested property as listed below:

Library Object Type Path to AllowExpandAnimation
WinForms Controls ResourcesTree
.OptionsBehavior.AllowExpandAnimation
TreeList
.OptionsBehavior.AllowExpandAnimation
Reporting XRDesignFieldList
.OptionsBehavior.AllowExpandAnimation
XRDesignReportExplorer
.OptionsBehavior.AllowExpandAnimation

Remarks

End-users can expand/collapse nodes using the expand button. The AllowExpandAnimation property specifies whether to use animation effects when expanding/collapsing nodes. If this property is set to Default, the actual behavior depends on the WindowsFormsSettings.AnimationMode static setting. If the global setting is set to Default or EnableAll, the animation effects are enabled; otherwise, they are disabled.

If you subscribe to the TreeList.BeforeExpand, TreeList.BeforeCollapse, TreeList.AfterExpand or TreeList.AfterCollapse event and the AllowExpandAnimation setting is Default, the expand/collapse animation effects are forcibly disabled.

In code, you can expand/collapse a node using the TreeListNode.Expand, TreeList.ExpandAll, TreeList.CollapseAll, TreeList.ExpandToLevel and TreeList.CollapseToLevel methods. When expanding/collapsing nodes in code, the animation is always disabled, regardless of the AllowExpandAnimation property value.

See Also