Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ManipulationDeltaEventArgs::ReportBoundaryFeedback Method

.NET Framework 4.6 and 4.5

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.

ExceptionCondition
ArgumentNullException

unusedManipulation is nullptr.

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

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft