C# Class Microsoft.Silverlight.Testing.Controls.DragValidator

Class to encapsulate drag behavior for a UIElement.
Show file Open project: garyjohnson/wpnest Class Usage Examples

Public Methods

Method Description
DragValidator ( UIElement targetElement ) : System

Create an instance of the DragValidator class.

Private Methods

Method Description
OnDragCompleted ( System.Windows.Input.MouseEventArgs e, bool canceled ) : void

Invoke the DragCompletedEvent handlers.

OnDragDelta ( System.Windows.Input.MouseEventArgs e ) : void

Invoke the DragDeltaEvent handlers.

OnDragStarted ( ) : void

Invoke the DragStartedEvent handlers.

TargetElement_MouseLeftButtonDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void

Handle the MouseLeftButtonDown event for the UIElement to start a drag operation.

TargetElement_MouseLeftButtonUp ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void

Handle the MouseLeftButtonUp event for the UIElement to complete the drag operation.

TargetElement_MouseMove ( object sender, System.Windows.Input.MouseEventArgs e ) : void

Handle the MouseMove event for the UIElement to update the drag operation.

Method Details

DragValidator() public method

Create an instance of the DragValidator class.
public DragValidator ( UIElement targetElement ) : System
targetElement UIElement /// UIElement that represents the source of the drag operation. ///
return System