Partager via


ScrollViewer.ManipulationMode Property

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

Gets or sets how manipulations are handled for ScrollViewer behavior.

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

Syntax

'Declaration
Public Property ManipulationMode As ManipulationMode
public ManipulationMode ManipulationMode { get; set; }

Property Value

Type: System.Windows.Controls.ManipulationMode
The manipulation mode used for ScrollViewer behavior. The default is System.

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

In Windows Phone OS 7.1, the ManipulationMode property enables you to specify how most of the property updates and events associated with scrolling a ScrollViewer are handled. You can specify that the system will handle the manipulations or that you will handle the manipulations at the control level. In most cases, to ensure smooth scrolling, you should let the system handle the manipulations, which is the default behavior.

XAML Attribute Usage

<!--Windows Phone XAML only -->
<object ScrollViewer.ManipulationMode="manipulationModeMemberName" .../>

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.