using System.Windows.Media; namespace LiveCharts.Wpf { /// /// Defines a condition that decides the fill and stroke to use in a CandleStick series /// public class FinancialColoringRule { /// /// Initializes a new instance of the class. /// public FinancialColoringRule() { } /// /// Initializes a new instance of the class. /// /// The condition. /// The stroke. /// The fill. public FinancialColoringRule(FinancialDelegate condition, Brush stroke, Brush fill) { Condition = condition; Stroke = stroke; Fill = fill; } /// /// Gets or sets the condition, if the condition returns true, the point will use the defined Stroke/Fill properties in the FinancialColoringRule object /// /// /// The condition. /// public FinancialDelegate Condition { get; set; } /// /// Gets or sets the stroke to use when the condition returns true. /// /// /// The stroke. /// public Brush Stroke { get; set; } /// /// Gets or sets the fill to use when the condition returns true. /// /// /// The fill. /// public Brush Fill { get; set; } } }