Export (0) Print
Expand All

UIPropertyMetadata.IsAnimationProhibited Property

Gets or sets a value declaring whether animations should be disabled on the dependency property where the containing metadata instance is applied.

Namespace:  System.Windows
Assembly:  PresentationCore (in PresentationCore.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation

public bool IsAnimationProhibited { get; set; }
<object IsAnimationProhibited="bool" .../>

Property Value

Type: System.Boolean
true indicates that animations are disallowed; false indicates that animations are allowed. The default is false (animations allowed).

In general, the default dependency properties available in the Windows Presentation Foundation (WPF) framework implementation APIs can be animated. You might set this property to true in the metadata of your own custom dependency property to disable animations on it.

If a property with this value true attempts to be used as an animation target, a runtime exception will be raised.

Properties on any derived classes of PropertyMetadata are normally defined in the object model as read-write. This is so they can be adjusted after initialization of the instance. However, once the metadata is consumed as part of a call to Register, AddOwner, or OverrideMetadata, the property system will seal that metadata instance and any properties that convey the specifics of the metadata are now considered immutable. Attempting to set IsAnimationProhibited once IsSealed is true on this metadata instance will raise an exception.

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft