ParallaxView.VerticalSourceOffsetKind 属性

定义

获取或设置一个值,该值确定如何解释 ParallaxView 的垂直源偏移值。

public:
 property ParallaxSourceOffsetKind VerticalSourceOffsetKind { ParallaxSourceOffsetKind get(); void set(ParallaxSourceOffsetKind value); };
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::ParallaxSourceOffsetKind::Relative")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::ParallaxSourceOffsetKind::Relative")]
ParallaxSourceOffsetKind VerticalSourceOffsetKind();

void VerticalSourceOffsetKind(ParallaxSourceOffsetKind value);
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::ParallaxSourceOffsetKind::Relative")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::ParallaxSourceOffsetKind::Relative")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::ParallaxSourceOffsetKind::Relative")]
ParallaxSourceOffsetKind VerticalSourceOffsetKind();

void VerticalSourceOffsetKind(ParallaxSourceOffsetKind value);
public ParallaxSourceOffsetKind VerticalSourceOffsetKind { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::ParallaxSourceOffsetKind::Relative")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::ParallaxSourceOffsetKind::Relative")] set; }
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::ParallaxSourceOffsetKind::Relative")]
public ParallaxSourceOffsetKind VerticalSourceOffsetKind { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::ParallaxSourceOffsetKind::Relative")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::ParallaxSourceOffsetKind::Relative")] set; }
var parallaxSourceOffsetKind = parallaxView.verticalSourceOffsetKind;
parallaxView.verticalSourceOffsetKind = parallaxSourceOffsetKind;
Public Property VerticalSourceOffsetKind As ParallaxSourceOffsetKind
<ParallaxView VerticalSourceOffsetKind="parallaxSourceOffsetKindName" .../>

属性值

枚举的一个值,该值确定如何解释 ParallaxView 的垂直源偏移值。

属性
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

适用于