Class SfParallaxView
The SfParallaxView control provides the parallax effect for the background view by moving its background element at a slower pace than the foreground view.
Inheritance
Namespace: Syncfusion.Maui.ParallaxView
Assembly: Syncfusion.Maui.ParallaxView.dll
Syntax
public class SfParallaxView : TemplatedView
Remarks
Bind any control that implements the IParallaxView interface as the source of the SfParallaxView.
Built-in integration with SfListView for the IParallaxView interface is provided.
By default, the SfParallaxView control supports vertical orientation. You can also set the orientation to horizontal by setting the Orientation property.
Constructors
SfParallaxView()
Initializes a new instance of the SfParallaxView class.
Declaration
public SfParallaxView()
Fields
ContentProperty
Identifies the Content bindable property.
Declaration
public static readonly BindableProperty ContentProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
OrientationProperty
Identifies the Orientation bindable property.
Declaration
public static readonly BindableProperty OrientationProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
SourceProperty
Identifies the Source bindable property.
Declaration
public static readonly BindableProperty SourceProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
SpeedProperty
Identifies the Speed bindable property.
Declaration
public static readonly BindableProperty SpeedProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
Properties
Content
Gets or sets the content value of the SfParallaxView.
Declaration
public View Content { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Controls.View |
Orientation
Gets or sets the orientation of the SfParallaxView.
Declaration
public Orientation Orientation { get; set; }
Property Value
| Type |
|---|
| Orientation |
Source
Gets or sets the source value of the SfParallaxView.
Declaration
public View Source { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Controls.View |
Speed
Gets or sets the parallax speed value between the source and content of the SfParallaxView.
Declaration
public double Speed { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double | It accepts |
Methods
OnBindingContextChanged()
Declaration
protected override void OnBindingContextChanged()