ParallaxView.HorizontalSourceOffsetKind 属性

定义

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

本文档适用于 Windows 应用 SDKWinUI 的 WinUI 2 for UWP (,请参阅Windows 应用 SDK命名空间) 。

public:
 property ParallaxSourceOffsetKind HorizontalSourceOffsetKind { ParallaxSourceOffsetKind get(); void set(ParallaxSourceOffsetKind value); };
ParallaxSourceOffsetKind HorizontalSourceOffsetKind();

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

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

属性值

枚举的值,用于确定如何解释 ParallaxView 的水平源偏移值。

属性
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

适用于