Share via


ParallaxView.IsVerticalShiftClamped 屬性

定義

取得或設定值,這個值表示垂直視差比例是否限制為來源捲動速度的指定百分比。

本檔適用于 Windows 應用程式 SDK 中適用于 WinUI 的 WinUI 2 for UWP (,請參閱Windows 應用程式 SDK命名空間) 。

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

void IsVerticalShiftClamped(bool value);
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")]
bool IsVerticalShiftClamped();

void IsVerticalShiftClamped(bool value);
public bool IsVerticalShiftClamped { get; set; }
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")]
public bool IsVerticalShiftClamped { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")] set; }
Public Property IsVerticalShiftClamped As Boolean
<ParallaxView IsVerticalShiftClamped="bool" .../>

屬性值

Boolean

bool

如果視差比率限制為來源捲動速度的指定百分比,則為true;否則為false。 預設值為 True

屬性
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

適用於