This documentation is archived and is not being maintained.

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)
XML Namespace:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

public bool IsAnimationProhibited { get; set; }
/** @property */
public boolean get_IsAnimationProhibited ()

/** @property */
public void set_IsAnimationProhibited (boolean value)

public function get IsAnimationProhibited () : boolean

public function set IsAnimationProhibited (value : boolean)

<object IsAnimationProhibited="bool" .../>

Property Value

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.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Show: