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

IDocumentDefaultProperties.AllowAnimation Property

Gets or sets whether image animation is allowed for the current Document’s tab.

Namespace: DevExpress.XtraBars.Docking2010.Views.Tabbed

Assembly: DevExpress.XtraBars.v19.2.dll

Declaration

DefaultBoolean AllowAnimation { get; set; }

Property Value

Type Description
DefaultBoolean

A DefaultBoolean value that specifies whether image animation is allowed for the current Document’s tab. Default value means a document will act according to its parent view’s IDocumentProperties.AllowAnimation property value.

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).

Remarks

You can display an animated image (.GIF) within a Document’s tab by assigning the image to the Document’s BaseDocument.Image property. By default, image animation is allowed. If required, you can disable image animation for either a specific Document or for all Documents via the AllowAnimation and IDocumentProperties.AllowAnimation property, respectively.

When an animated image is assigned to the Document, the animation starts immediately, unless the image animation is disabled via the mentioned AllowAnimation properties. To manually pause the animation for a specific Document, you can call the Document.StopAnimation method. To pause the animation for all Documents, use TabbedView.StopAnimation. To restart paused animation, use the Document.StartAnimation or TabbedView.StartAnimation method.

See Also