Export (0) Print
Expand All

ManipulationDeltaEventArgs.ReportBoundaryFeedback Method

Specifies that the manipulation has gone beyond certain boundaries.

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

member ReportBoundaryFeedback : 
        unusedManipulation:ManipulationDelta -> unit

Parameters

unusedManipulation
Type: System.Windows.Input.ManipulationDelta

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

ExceptionCondition
ArgumentNullException

unusedManipulation is a null reference (Nothing in Visual Basic).

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.5.2, 4.5.1, 4.5, 4

.NET Framework Client Profile

Supported in: 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft