OpenFromDiskCommand ClassDocument Toolkit Help
The command that opens an XPS document from disk using the DefaultPackageReader and assigns it to a DocumentDataSource.
Inheritance Hierarchy

SystemObject
  System.WindowsDependencyObject
    FirstFloor.Documents.Controls.CommandsCommandBase
      FirstFloor.Documents.Controls.CommandsOpenFromDiskCommand

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

public class OpenFromDiskCommand : CommandBase

The OpenFromDiskCommand type exposes the following members.

Constructors

  NameDescription
Public methodOpenFromDiskCommand
Initializes a new instance of the OpenFromDiskCommand class
Top
Properties

  NameDescription
Public propertyDispatcher
Gets the Dispatcher this object is associated with.
(Inherited from DependencyObject.)
Public propertyDocumentDataSource
Gets or sets the target document data source.
Public propertyFilter
Gets or sets the file type filter string.
Top
Methods

  NameDescription
Public methodCanExecute
Defines the method that determines whether the command can execute in its current state.
(Overrides CommandBaseCanExecute(Object).)
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 methodCreatePackageReader
Creates a package reader for given stream.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodExecute
Defines the method to be called when the command is invoked.
(Inherited from CommandBase.)
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 methodOnCanExecuteChanged
Raises the CanExecuteChanged event.
(Inherited from CommandBase.)
Protected methodOnCreatePackageReaderFailed
Called when the creation of a package reader has failed.
Protected methodOnExecute
Implements the actual command execution.
(Overrides CommandBaseOnExecute(Object).)
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
Events

  NameDescription
Public eventCanExecuteChanged
Occurs when changes occur that affect whether the command should execute.
(Inherited from CommandBase.)
Top
Fields

  NameDescription
Public fieldStatic memberDocumentDataSourceProperty
Identifies the DocumentDataSource dependency property.
Public fieldStatic memberFilterProperty
Identifies the Filter dependency property.
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
See Also

Reference