ManipulationDeltaEventArgs::ReportBoundaryFeedback Method (ManipulationDelta^)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Specifies that the manipulation has gone beyond certain boundaries.

Namespace:   System.Windows.Input
Assembly:  PresentationCore (in PresentationCore.dll)

public:
void ReportBoundaryFeedback(
	ManipulationDelta^ unusedManipulation
)

Parameters

unusedManipulation
Type: System.Windows.Input::ManipulationDelta^

The portion of the manipulation that represents moving beyond the boundary.

Exception Condition
ArgumentNullException

unusedManipulation is null.

Use the ReportBoundaryFeedback method to indicate that an element has moved beyond a certain boundary. For example, if a user moves an element outside of the bounds of a Window, you can call this method to report that to the window. When you call ReportBoundaryFeedback, the ManipulationBoundaryFeedback event occurs. By default, the Window subscribes to the ManipulationBoundaryFeedback event to provide visual feedback to the user that a boundary has been reached. You can subscribe to ManipulationBoundaryFeedback to implement custom behavior.

The following example shows an event handler for the ManipulationDelta event that calls the ReportBoundaryFeedback method when the user moves the element over the edge of its container. To test this example, follow the steps in Walkthrough: Creating Your First Touch Application and replace the code in step 5 with this code.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 4.0
Return to top
Show: