ScrollViewer.SetCanContentRenderOutsideBounds 方法

定义

设置指定元素上的 CanContentRenderOutsideBounds 依赖属性/ ScrollViewer.CanContentRenderOutsideBounds XAML 附加属性的值。

public:
 static void SetCanContentRenderOutsideBounds(DependencyObject ^ element, bool canContentRenderOutsideBounds);
 static void SetCanContentRenderOutsideBounds(DependencyObject const& element, bool const& canContentRenderOutsideBounds);
public static void SetCanContentRenderOutsideBounds(DependencyObject element, bool canContentRenderOutsideBounds);
function setCanContentRenderOutsideBounds(element, canContentRenderOutsideBounds)
Public Shared Sub SetCanContentRenderOutsideBounds (element As DependencyObject, canContentRenderOutsideBounds As Boolean)

参数

element
DependencyObject

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

canContentRenderOutsideBounds
Boolean

bool

要设置的值。

Windows 要求

设备系列
Windows 10, version 1809 (在 10.0.17763.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v7.0 中引入)

注解

有关详细信息,请参阅 CanContentRenderOutsideBounds 属性。

适用于

另请参阅