DefaultImageBehavior ClassDocument Toolkit Help
Provides behavior for images in an XPS fixed page.
Inheritance Hierarchy

SystemObject
  System.WindowsDependencyObject
    Behavior
      BehaviorShape
        FirstFloor.Documents.BehaviorsElementBehaviorShape
          FirstFloor.Documents.BehaviorsDefaultImageBehavior

Namespace: FirstFloor.Documents.Behaviors
Assembly: FirstFloor.Documents (in FirstFloor.Documents.dll) Version: 2.5.0.0 (2.5.11.0)
Syntax

public class DefaultImageBehavior : ElementBehavior<Shape>

The DefaultImageBehavior type exposes the following members.

Constructors

  NameDescription
Public methodDefaultImageBehavior
Initializes a new instance of the DefaultImageBehavior class.
Top
Properties

  NameDescription
Protected propertyAssociatedObject (Inherited from BehaviorShape.)
Protected propertyAssociatedPage
Gets the associated fixed page.
(Inherited from ElementBehaviorT.)
Protected propertyAssociatedType (Inherited from Behavior.)
Public propertyDispatcher
Gets the Dispatcher this object is associated with.
(Inherited from DependencyObject.)
Protected propertyImageBrush
Gets the image brush of the associated object.
Public propertyImageFailBrush
Gets or sets the brush that is set when the image fails to load.
Top
Methods

  NameDescription
Public methodAttach (Inherited from Behavior.)
Public methodCheckAccess
Determines whether the calling thread has access to this object.
(Inherited from DependencyObject.)
Public methodClearValue
Clears the local value of a dependency property.
(Inherited from DependencyObject.)
Public methodDetach (Inherited from Behavior.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetAnimationBaseValue
Returns any base value established for a Silverlight dependency property, which would apply in cases where an animation is not active.
(Inherited from DependencyObject.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetValue
Returns the current effective value of a dependency property from a DependencyObject.
(Inherited from DependencyObject.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnAttached
Called after the behavior is attached to an AssociatedObject.
(Overrides Behavior.OnAttached.)
Protected methodOnDetaching
Called when the behavior is being detached from its AssociatedObject, but before it has actually occurred.
(Overrides ElementBehaviorTOnDetaching.)
Protected methodOnImageFailed
Called when the fill image brush fails to load.
Protected methodOnImageOpened
Called when the fill image brush is opened.
Public methodReadLocalValue
Returns the local value of a dependency property, if a local value is set.
(Inherited from DependencyObject.)
Public methodSetValue
Sets the local value of a dependency property on a DependencyObject.
(Inherited from DependencyObject.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods

  NameDescription
Public Extension MethodAncestorsAndSelf
Returns a collection of visual elements that contain specified object, and the ancestors of specified object.
(Defined by DependencyObjectExtensions.)
Public Extension MethodDescendants
Retrieves all visual descendants of a framework element.
(Defined by DependencyObjectExtensions.)
Public Extension MethodElements
Retrieves the visual elements of a framework element.
(Defined by DependencyObjectExtensions.)
Top
Remarks

Images in XPS documents are represented with Path elements having the Fill property set to an ImageBrush.

This default behavior replaces an image with a solid light gray color whenever an image fails to load.

See Also

Reference