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 a new instance of the PanEventArgs 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 a new instance of the PanEventArgs 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 a new instance of the PanEventArgs 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

Gets or sets the offset along the X-axis.

public double XOffset { get; }

Property Value

double:

The offset along the X-axis.

YOffset

Gets or sets the offset along the Y-axis.

public double YOffset { get; }

Property Value

double:

The offset along the Y-axis.

Inherited Members