Class FortuneItemStyle
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
backgroundIBrushThe 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
backgroundIBrushThe background brush.
foregroundIBrushThe foreground brush.
borderBrushIBrushThe border brush.
borderThicknessdoubleThe 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
Foreground
Gets or sets the foreground brush for text content.
public IBrush? Foreground { get; set; }
Property Value
- IBrush