Skip to main content

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.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

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 Return Value
True

The value is true.

0

False

The value is false.

1

Default

The value is specified by a global option or a higher-level object.

2

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