Class
ProductCard

Represents a card control that is used to display product messages.

Definition

Constructors

ProductCard()

Initializes a new instance of the ProductCard class.

Declaration

cs-api-definition
public ProductCard()

Fields

PriceProperty

Identifies the Price dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty PriceProperty

Field Value

DependencyProperty

RatingItemsCountProperty

Identifies the RatingItemsCount dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty RatingItemsCountProperty

Field Value

DependencyProperty

RatingProperty

Identifies the Rating dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty RatingProperty

Field Value

DependencyProperty

Properties

Price

Gets or sets the formatted price.

Declaration

cs-api-definition
public string Price { get; set; }

Property Value

string

Rating

Gets or sets the rating of the product.

Declaration

cs-api-definition
public double Rating { get; set; }

Property Value

double

RatingItemsCount

Gets or sets the number of rating items (stars).

Declaration

cs-api-definition
public int RatingItemsCount { get; set; }

Property Value

int

Methods

OnCreateAutomationPeer()

Declaration

cs-api-definition
protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer

Overrides ImageCard.OnCreateAutomationPeer()