ParallaxView.IsVerticalShiftClamped 属性

定义

获取或设置一个值,该值指示垂直视差比率是否固定到源滚动速度的指定百分比。

适用于 UWP 的等效 WinUI 2 API:Windows 应用 SDK中 WinUI 的 Microsoft.UI.Xaml.Controls.ParallaxView.IsVerticalShiftClamped (,请参阅 ) Windows 应用 SDK命名空间

public:
 property bool IsVerticalShiftClamped { bool get(); void set(bool value); };
bool IsVerticalShiftClamped();

void IsVerticalShiftClamped(bool value);
public bool IsVerticalShiftClamped { get; set; }
var boolean = parallaxView.isVerticalShiftClamped;
parallaxView.isVerticalShiftClamped = boolean;
Public Property IsVerticalShiftClamped As Boolean
<ParallaxView IsVerticalShiftClamped="bool" .../>

属性值

Boolean

bool

如果视差比率固定到源滚动速度的指定百分比,则为 true;否则为 false。 默认值为 true

适用于