Table of Contents

Interface IStyleStrategy

Namespace
Nova.Avalonia.UI.Controls
Assembly
Nova.Avalonia.UI.dll

Defines a strategy for styling fortune items based on their position.

public interface IStyleStrategy

Methods

GetStyle(int, int, FortuneItemStyle?)

Gets the style for an item at a specific index.

FortuneItemStyle GetStyle(int index, int totalCount, FortuneItemStyle? itemStyle)

Parameters

index int

The index of the item.

totalCount int

The total number of items.

itemStyle FortuneItemStyle

The item's custom style, if any.

Returns

FortuneItemStyle

The style to apply to the item.