ParallaxView.IsHorizontalShiftClamped 属性

定义

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

public:
 property bool IsHorizontalShiftClamped { bool get(); void set(bool value); };
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")]
bool IsHorizontalShiftClamped();

void IsHorizontalShiftClamped(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 IsHorizontalShiftClamped();

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

属性值

Boolean

bool

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

属性
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

适用于