Delen via


ParallaxView.Source Property

Definition

The element that either is or contains the ScrollViewer that controls the parallax operation.

Equivalent WinUI 2 API for UWP: Microsoft.UI.Xaml.Controls.ParallaxView.Source (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

public:
 property UIElement ^ Source { UIElement ^ get(); void set(UIElement ^ value); };
UIElement Source();

void Source(UIElement value);
public UIElement Source { get; set; }
var uIElement = parallaxView.source;
parallaxView.source = uIElement;
Public Property Source As UIElement
<ParallaxView Source="sourceElement" .../>

Property Value

Remarks

If the source element is not a ScrollViewer, the XAML tree is walked starting at the source element to find an embedded ScrollViewer.

Applies to