ToolActionEventArgs Class

Provides data for ToolAction events.

Inheritance Hierarchy

System.Object
  System.EventArgs
    System.Windows.RoutedEventArgs
      System.Windows.Input.InputEventArgs
        Microsoft.Windows.Design.Interaction.ToolActionEventArgs

Namespace:  Microsoft.Windows.Design.Interaction
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
Public Class ToolActionEventArgs _
    Inherits InputEventArgs
public class ToolActionEventArgs : InputEventArgs
public ref class ToolActionEventArgs : public InputEventArgs
type ToolActionEventArgs =  
    class
        inherit InputEventArgs
    end
public class ToolActionEventArgs extends InputEventArgs

The ToolActionEventArgs type exposes the following members.

Constructors

  Name Description
Public method ToolActionEventArgs(ToolAction, InputEventArgs) Initializes a new instance of the ToolActionEventArgs class.
Public method ToolActionEventArgs(ToolAction, EventArgs, InputDevice, Int32) Initializes a new instance of the ToolActionEventArgs class.

Top

Properties

  Name Description
Public property Device Gets the input device that initiated this event. (Inherited from InputEventArgs.)
Public property Handled Gets or sets a value that indicates the present state of the event handling for a routed event as it travels the route. (Inherited from RoutedEventArgs.)
Public property OriginalSource Gets the original reporting source as determined by pure hit testing, before any possible Source adjustment by a parent class. (Inherited from RoutedEventArgs.)
Public property RoutedEvent Gets or sets the RoutedEvent associated with this RoutedEventArgs instance. (Inherited from RoutedEventArgs.)
Public property Source Gets or sets a reference to the object that raised the event. (Inherited from RoutedEventArgs.)
Public property SourceEvent Gets the input event that caused this tool action event to occur.
Public property Timestamp Gets the time when this event occurred. (Inherited from InputEventArgs.)
Public property ToolAction Gets the tool action associated with this event.

Top

Methods

  Name Description
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method InvokeEventHandler Invokes event handlers in a type-specific way, which can increase event system efficiency. (Inherited from InputEventArgs.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method OnSetSource When overridden in a derived class, provides a notification callback entry point whenever the value of the Source property of an instance changes. (Inherited from RoutedEventArgs.)
Public method ToString Returns a string describing the event for diagnostic purposes. (Overrides Object.ToString().)

Top

Remarks

The designer view generates this input event when an input event triggers a particular tool action.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.Windows.Design.Interaction Namespace

Other Resources

WPF Designer Extensibility

Tool Architecture