ScrollViewer.SetCanContentScroll(DependencyObject, Boolean) 方法

定义

CanContentScroll 依赖属性的值设为给定元素。

public:
 static void SetCanContentScroll(System::Windows::DependencyObject ^ element, bool canContentScroll);
public static void SetCanContentScroll (System.Windows.DependencyObject element, bool canContentScroll);
static member SetCanContentScroll : System.Windows.DependencyObject * bool -> unit
Public Shared Sub SetCanContentScroll (element As DependencyObject, canContentScroll As Boolean)

参数

element
DependencyObject

要在其上设置属性值的元素。

canContentScroll
Boolean

要设置的属性值。

适用于