Card stacks and card sequences

The Layout Editor allows for multiple sets of layouts within an embedded region. These can be imagined as a stack or sequence of cards.

In a card stack, each card is given a name, and the cards are shown in a specified order. One card is identified as the default card so it can be shown at the top of the stack. Only the top card is visible.

To change which card in the stack is on top, use the ShowCard() API:

context.GetRegion(region).ShowCard(cardName)

In a card sequence, cards are displayed next to each other in the active card design area. The cards are rendered left to right in the same order as in the card list in the Layout Editor tools pane. By default, cards are left-aligned inside of the parent container.

To change card alignment, you can use the regular horizontal alignment styles: ipf-horizontalalign-center and ipf-horizontalalign-right.

Note: The existing API for card stacks, IPFRegionI.ShowCard, does nothing when applied to a card in a card sequence, as all the cards are already placed.

Also see Card sequence.