共用方式為


ParallaxView.HorizontalSourceOffsetKind 屬性

定義

取得或設定值,決定如何解譯 ParallaxView 的水準來源位移值。

本檔適用于 Windows 應用程式 SDK 中適用于 WinUI 的 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

適用於