Partager via


ScrollViewer.SetManipulationMode Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Sets the value of the ManipulationMode attached property, and supports the property's XAML usage.

Namespace:  System.Windows.Controls
Assembly:  System.Windows (in System.Windows.dll)

Syntax

'Declaration
Public Shared Sub SetManipulationMode ( _
    element As DependencyObject, _
    manipulationMode As ManipulationMode _
)
public static void SetManipulationMode(
    DependencyObject element,
    ManipulationMode manipulationMode
)

Parameters

Remarks

Version Notes

Silverlight for the desktop

Do not use for a Silverlight for the desktop application.

Silverlight for Windows Phone Silverlight for Windows Phone

For information on using manipulations on Silverlight for Windows Phone, see How to: Handle Manipulation Events.

Version Information

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.