Share via


ToolActionEventArgs Constructor (ToolAction, EventArgs, InputDevice, Int32)

Initializes a new instance of the ToolActionEventArgs class.

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

Syntax

'Declaration
Public Sub New ( _
    toolAction As ToolAction, _
    sourceEvent As EventArgs, _
    inputDevice As InputDevice, _
    timestamp As Integer _
)
public ToolActionEventArgs(
    ToolAction toolAction,
    EventArgs sourceEvent,
    InputDevice inputDevice,
    int timestamp
)
public:
ToolActionEventArgs(
    ToolAction toolAction, 
    EventArgs^ sourceEvent, 
    InputDevice^ inputDevice, 
    int timestamp
)
new : 
        toolAction:ToolAction * 
        sourceEvent:EventArgs * 
        inputDevice:InputDevice * 
        timestamp:int -> ToolActionEventArgs
public function ToolActionEventArgs(
    toolAction : ToolAction, 
    sourceEvent : EventArgs, 
    inputDevice : InputDevice, 
    timestamp : int
)

Parameters

  • timestamp
    Type: System.Int32
    The time when the input occurred.

Exceptions

Exception Condition
ArgumentNullException

sourceEvent is nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

ToolActionEventArgs Class

ToolActionEventArgs Overload

Microsoft.Windows.Design.Interaction Namespace

Other Resources

WPF Designer Extensibility

Tool Architecture