BBBackgroundBrush
public static SolidColorBrush BBBackgroundBrushReturns the Brush used for Building Block backgrounds in the currently initialized WL9 Theme.
API documentation, members, signatures, and C# examples.
Find classes, members, and documentation.
The PenBrushFactory class is a static utility that creates and caches WPF Pen and Brush objects. It also exposes colors and brushes derived from the currently selected WL9 Theme. Repeated requests for the same WLColor-based Brush or the same Pen definition reuse cached objects instead of creating new instances.
public static SolidColorBrush BBBackgroundBrushReturns the Brush used for Building Block backgrounds in the currently initialized WL9 Theme.
public static SolidColorBrush BBConditionBrushReturns the Brush used for Building Block condition elements in the currently initialized WL9 Theme.
public static SolidColorBrush BBLongEntryBrushReturns the Brush used for Building Block long-entry elements in the currently initialized WL9 Theme.
public static SolidColorBrush BBLongExitBrushReturns the Brush used for Building Block long-exit elements in the currently initialized WL9 Theme.
public static SolidColorBrush BBQualifierBrushReturns the Brush used for Building Block qualifier elements in the currently initialized WL9 Theme.
public static SolidColorBrush BBShortEntryBrushReturns the Brush used for Building Block short-entry elements in the currently initialized WL9 Theme.
public static SolidColorBrush BBShortExitBrushReturns the Brush used for Building Block short-exit elements in the currently initialized WL9 Theme.
public static Brush GetBrush(WLColor color)Returns a WPF Brush for the specified color. The returned Brush is cached, so subsequent calls using the same WLColor return the existing Brush instance.
public static Pen GetPen( WLColor color, double thickness = 1.0, LineStyle ls = LineStyle.Solid)public static Pen GetPen( WLColor color, LineStyle ls)Returns a WPF Pen using the specified color. The first overload optionally lets you specify the Pen's thickness and line style. The second overload creates a Pen using the specified color and ls with a thickness of 1. The supported LineStyle values are rendered as follows:
public static void Initialize(Window w)Initializes the theme-dependent colors and brushes exposed by PenBrushFactory using resources from the specified WPF Window. This method initializes the red, green, yellow, foreground, background, Building Block, and blue status brushes. If the Window is null or does not contain the expected RedText resource, the method returns without initializing the properties.
public static SolidColorBrush ProfitBrush(double profit)Returns a theme-aware Brush based on the specified profit value.
public static SolidColorBrush BlueStatusBrushReturns the blue status text Brush from the currently initialized WL9 Theme. It is used by WL9 for status rendering such as the Strategy Monitor.
public static SolidColorBrush BackgroundBrushReturns the background SolidColorBrush of the currently initialized WL9 Theme.
public static SolidColorBrush ForegroundBrushReturns the foreground SolidColorBrush of the currently initialized WL9 Theme.
public static SolidColorBrush GreenTextBrushReturns the green text SolidColorBrush of the currently initialized WL9 Theme.
public static SolidColorBrush RedTextBrushReturns the red text SolidColorBrush of the currently initialized WL9 Theme.
public static SolidColorBrush YellowTextBrushReturns the yellow text SolidColorBrush of the currently initialized WL9 Theme.
public static WLColor BackgroundColorReturns the background color of the currently initialized WL9 Theme.
public static WLColor ForegroundColorReturns the foreground color of the currently initialized WL9 Theme.
public static WLColor GreenColorReturns the green text color of the currently initialized WL9 Theme.
public static WLColor RedColorReturns the red text color of the currently initialized WL9 Theme.
public static WLColor YellowColorReturns the yellow text color of the currently initialized WL9 Theme.
Ask the community or explore custom development services.