Click or drag to resize
KaxToolBarCollapseAnimation Property
Gets the settings for the animation played when a dropdown closes.

Namespace: Kettic.AspNet.Controls
Assembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax
[PersistenceModeAttribute(PersistenceMode.InnerProperty)]
public AnimationSettings CollapseAnimation { get; }

Property Value

Type: AnimationSettings
An AnnimationSettings that represents the collapse animation.
Remarks

Use the CollapseAnimation property to customize the collapse animation of the KaxToolBar dropdown items - KaxToolBarDropDown and KaxToolBarSplitButton. You can specify the Type and the Duration of the collapse animation. To disable collapse animation effects you should set the Type to AnimationType.None.
To customize the expand animation you can use the ExpandAnimation property.

Examples
The following example demonstrates how to set the CollapseAnimation of the KaxToolBar dropdown items.

ASPX:

<kettic:KaxToolBar ID="KaxToolBar1" runat="server">

<CollapseAnimation Type="OutQuint" Duration="300" />

<Items>

<kettic:KaxToolBarDropDown Text="Insert Html Element" >

<Buttons>

<kettic:KaxToolBarButton Text="Image" />

<kettic:KaxToolBarButton Text="Editable Div element" />

</Buttons>

</kettic:KaxToolBarDropDown>

<kettic:KaxToolBarSplitButton Text="Insert Form Element" >

<Buttons>

<kettic:KaxToolBarButton Text="Button" />

<kettic:KaxToolBarButton Text="TextBox" />

<kettic:KaxToolBarButton Text="TextArea" />

<kettic:KaxToolBarButton Text="CheckBox" />

<kettic:KaxToolBarButton Text="RadioButton" />

</Buttons>

</kettic:KaxToolBarSplitButton>

</Items>

</kettic:KaxToolBar>

void Page_Load(object sender, EventArgs e)
{
    KaxToolBar1.CollapseAnimation.Type = AnimationType.Linear;
    KaxToolBar1.CollapseAnimation.Duration = 300;
}
See Also