Table of Contents

Class FortuneItemStyle

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

Defines the visual styling for a fortune item.

public class FortuneItemStyle
Inheritance
FortuneItemStyle
Inherited Members

Constructors

FortuneItemStyle()

Initializes a new instance of the FortuneItemStyle class.

public FortuneItemStyle()

FortuneItemStyle(IBrush)

Initializes a new instance of the FortuneItemStyle class with a background.

public FortuneItemStyle(IBrush background)

Parameters

background IBrush

The background brush.

FortuneItemStyle(IBrush?, IBrush?, IBrush?, double)

Initializes a new instance of the FortuneItemStyle class with full styling.

public FortuneItemStyle(IBrush? background, IBrush? foreground, IBrush? borderBrush = null, double borderThickness = 0)

Parameters

background IBrush

The background brush.

foreground IBrush

The foreground brush.

borderBrush IBrush

The border brush.

borderThickness double

The border thickness.

Properties

Background

Gets or sets the background brush for the item.

public IBrush? Background { get; set; }

Property Value

IBrush

BorderBrush

Gets or sets the border brush for the item.

public IBrush? BorderBrush { get; set; }

Property Value

IBrush

BorderThickness

Gets or sets the border thickness for the item.

public double BorderThickness { get; set; }

Property Value

double

Foreground

Gets or sets the foreground brush for text content.

public IBrush? Foreground { get; set; }

Property Value

IBrush