In This Article

PanEventArgs Class

Provides event arguments for the Pan routed event.

public class PanEventArgs : RoutedEventArgs
Inheritance:
object EventArgs RoutedEventArgs object

Constructors

PanEventArgs(double, double)

Initializes an instance of the class.

public PanEventArgs(double xOffset, double yOffset)
Parameter Type Description
xOffset double

The offset along the X-axis.

yOffset double

The offset along the Y-axis.

PanEventArgs(double, double, RoutedEvent)

Initializes an instance of the class.

public PanEventArgs(double xOffset, double yOffset, RoutedEvent routedEvent)
Parameter Type Description
xOffset double

The offset along the X-axis.

yOffset double

The offset along the Y-axis.

routedEvent RoutedEvent

The routed event identifier for this event arguments instance.

PanEventArgs(double, double, RoutedEvent?, object?)

Initializes an instance of the class.

public PanEventArgs(double xOffset, double yOffset, RoutedEvent? routedEvent, object? source)
Parameter Type Description
xOffset double

The offset along the X-axis.

yOffset double

The offset along the Y-axis.

routedEvent RoutedEvent

The routed event identifier for this event arguments instance.

source object

An alternate source that will be reported when the event is handled.

Properties

XOffset

The offset along the X-axis.

public double XOffset { get; }

Property Value

double

YOffset

The offset along the Y-axis.

public double YOffset { get; }

Property Value

double

Inherited Members

Extension Methods