共用方式為


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 如何回應觸控操作的值。

適用於