Provides behavior for images in an XPS fixed page.
Inheritance Hierarchy
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
The DefaultImageBehavior type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | DefaultImageBehavior |
Initializes a new instance of the DefaultImageBehavior class.
|
Properties
Name | Description | |
---|---|---|
![]() | AssociatedObject | (Inherited from BehaviorShape.) |
![]() | AssociatedPage |
Gets the associated fixed page.
(Inherited from ElementBehaviorT.) |
![]() | AssociatedType | (Inherited from Behavior.) |
![]() | Dispatcher | Gets the Dispatcher this object is associated with. (Inherited from DependencyObject.) |
![]() | ImageBrush |
Gets the image brush of the associated object.
|
![]() | ImageFailBrush |
Gets or sets the brush that is set when the image fails to load.
|
Methods
Name | Description | |
---|---|---|
![]() | Attach | (Inherited from Behavior.) |
![]() | CheckAccess | Determines whether the calling thread has access to this object. (Inherited from DependencyObject.) |
![]() | ClearValue | Clears the local value of a dependency property. (Inherited from DependencyObject.) |
![]() | Detach | (Inherited from Behavior.) |
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetAnimationBaseValue | Returns any base value established for a Silverlight dependency property, which would apply in cases where an animation is not active. (Inherited from DependencyObject.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | GetValue | Returns the current effective value of a dependency property from a DependencyObject. (Inherited from DependencyObject.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | OnAttached |
Called after the behavior is attached to an AssociatedObject.
(Overrides Behavior.OnAttached.) |
![]() | OnDetaching |
Called when the behavior is being detached from its AssociatedObject, but before it has actually occurred.
(Overrides ElementBehaviorTOnDetaching.) |
![]() | OnImageFailed |
Called when the fill image brush fails to load.
|
![]() | OnImageOpened |
Called when the fill image brush is opened.
|
![]() | ReadLocalValue | Returns the local value of a dependency property, if a local value is set. (Inherited from DependencyObject.) |
![]() | SetValue | Sets the local value of a dependency property on a DependencyObject. (Inherited from DependencyObject.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
Extension Methods
Name | Description | |
---|---|---|
![]() | AncestorsAndSelf |
Returns a collection of visual elements that contain specified object, and the ancestors of specified object.
(Defined by DependencyObjectExtensions.) |
![]() | Descendants |
Retrieves all visual descendants of a framework element.
(Defined by DependencyObjectExtensions.) |
![]() | Elements |
Retrieves the visual elements of a framework element.
(Defined by DependencyObjectExtensions.) |
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