Class SfCardView
Represents a root class for card view, which contains a surface that displays content and actions in a single topic.
Inherited Members
Namespace: Syncfusion.XForms.Cards
Assembly: Syncfusion.Cards.XForms.dll
Syntax
public class SfCardView : SfBorder, IParentThemeElement, IThemeElement
Examples
<cardView:SfCardView>
<Entry />
</cardView:SfCardView>
Constructors
SfCardView()
Initializes a new instance of the SfCardView class.
Declaration
public SfCardView()
Fields
BackgroundColorProperty
Gets or sets the back color of the layout.
Declaration
public static readonly BindableProperty BackgroundColorProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
BorderColorProperty
Gets or sets the border color of the card view.
Declaration
public static readonly BindableProperty BorderColorProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
BorderWidthProperty
Gets or sets the border width of the card view.
Declaration
public static readonly BindableProperty BorderWidthProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
ContentProperty
Gets or sets the content for card view.
Declaration
public static readonly BindableProperty ContentProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
CornerRadiusProperty
It is used when drawing rounded corners.
Declaration
public static readonly BindableProperty CornerRadiusProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
FadeOutOnSwipingProperty
Gets or sets a value that indicates whether to reduce opacity of card view on swipe.
Declaration
public static readonly BindableProperty FadeOutOnSwipingProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
Remarks
This property won't work when adding the SfCardView as a child of SfCardLayout.
HasShadowProperty
It is used to indicating whether to display the shadow for border (Applicable for Android and iOS).
Declaration
public static readonly BindableProperty HasShadowProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
Remarks
This property won't work when adding the SfCardView as a child of SfCardLayout.
IndicatorColorProperty
Gets or sets the indicator color for card view.
Declaration
public static readonly BindableProperty IndicatorColorProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
IndicatorPositionProperty
Gets or sets the indicator position for card view.
Declaration
public static readonly BindableProperty IndicatorPositionProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
IndicatorThicknessProperty
Gets or sets the indicator thickness for card view.
Declaration
public static readonly BindableProperty IndicatorThicknessProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
IsDismissedProperty
It is used to indicating whether to dismiss the card view or not.
Declaration
public static readonly BindableProperty IsDismissedProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
Remarks
This property won't work when adding the SfCardView as a child of SfCardLayout.
ShadowColorProperty
Gets or sets shadow color to the border (Applicable for Android and iOS).
Declaration
public static readonly BindableProperty ShadowColorProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
Remarks
This property won't work when adding the SfCardView as a child of SfCardLayout.
SwipeToDismissProperty
Gets or sets a value that indicates whether swiping should be enabled for card view.
Declaration
public static readonly BindableProperty SwipeToDismissProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
Remarks
This property won't work when adding the SfCardView as a child of SfCardLayout.
Properties
BackgroundColor
Gets or sets the back color of the layout.
Declaration
public Color BackgroundColor { get; set; }
Property Value
Type |
---|
Xamarin.Forms.Color |
BorderColor
Gets or sets the border color of the card view.
Declaration
public Color BorderColor { get; set; }
Property Value
Type |
---|
Xamarin.Forms.Color |
BorderWidth
Gets or sets the border width of the card view.
Declaration
public double BorderWidth { get; set; }
Property Value
Type |
---|
System.Double |
Content
Gets or sets the content for card view.
Declaration
public View Content { get; set; }
Property Value
Type |
---|
Xamarin.Forms.View |
CornerRadius
Gets or sets the value of corner radius.This property can be used to customize the corners of card view.
Declaration
public Thickness CornerRadius { get; set; }
Property Value
Type | Description |
---|---|
Xamarin.Forms.Thickness | The corner radius. |
FadeOutOnSwiping
Gets or sets a value indicating whether to reduce opacity of card view on swipe.
Declaration
public bool FadeOutOnSwiping { get; set; }
Property Value
Type |
---|
System.Boolean |
Remarks
This property won't work when adding the SfCardView as a child of SfCardLayout.
HasShadow
Gets or sets a value indicating whether to display the shadow for card view (Applicable for Android and iOS).
Declaration
public bool HasShadow { get; set; }
Property Value
Type |
---|
System.Boolean |
Remarks
This property won't work when adding the SfCardView as a child of SfCardLayout.
IndicatorColor
Gets or sets the indicator color for card view.
Declaration
public Color IndicatorColor { get; set; }
Property Value
Type |
---|
Xamarin.Forms.Color |
IndicatorPosition
Gets or sets the indicator position for card view.
Declaration
public IndicatorPosition IndicatorPosition { get; set; }
Property Value
Type |
---|
IndicatorPosition |
IndicatorThickness
Gets or sets the indicator thickness for card view.
Declaration
public double IndicatorThickness { get; set; }
Property Value
Type |
---|
System.Double |
IsDismissed
Gets or sets a value indicating whether to dismiss the card view or not.
Declaration
public bool IsDismissed { get; set; }
Property Value
Type |
---|
System.Boolean |
Remarks
This property won't work when adding the SfCardView as a child of SfCardLayout.
ShadowColor
Gets or sets shadow color to the border (Applicable for Android and iOS).
Declaration
public Color ShadowColor { get; set; }
Property Value
Type |
---|
Xamarin.Forms.Color |
Remarks
This property won't work when adding the SfCardView as a child of SfCardLayout.
SwipeToDismiss
Gets or sets a value indicating whether swiping should be enabled for card view.
Declaration
public bool SwipeToDismiss { get; set; }
Property Value
Type |
---|
System.Boolean |
Remarks
This property won't work when adding the SfCardView as a child of SfCardLayout.
Methods
OnSizeAllocated(Double, Double)
Raised when element size is changed.
Declaration
protected override void OnSizeAllocated(double width, double height)
Parameters
Type | Name | Description |
---|---|---|
System.Double | width | width of element. |
System.Double | height | height of element. |
Events
Dismissed
Occurs when swiping operation is completed.
Declaration
public event EventHandler<DismissedEventArgs> Dismissed
Event Type
Type |
---|
System.EventHandler<DismissedEventArgs> |
Dismissing
Occurs when swiping operation is being done.
Declaration
public event EventHandler<DismissingEventArgs> Dismissing
Event Type
Type |
---|
System.EventHandler<DismissingEventArgs> |