Share via


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

要設定的屬性值。

適用於