ScrollViewer.SetPanningMode(DependencyObject, PanningMode) 方法

定义

为指定对象设置 PanningMode 属性。

public:
 static void SetPanningMode(System::Windows::DependencyObject ^ element, System::Windows::Controls::PanningMode panningMode);
public static void SetPanningMode (System.Windows.DependencyObject element, System.Windows.Controls.PanningMode panningMode);
static member SetPanningMode : System.Windows.DependencyObject * System.Windows.Controls.PanningMode -> unit
Public Shared Sub SetPanningMode (element As DependencyObject, panningMode As PanningMode)

参数

element
DependencyObject

要对其设置 PanningMode 属性的对象。

panningMode
PanningMode

指定 ScrollViewer 如何响应触摸操作的值。

适用于