Search Framework:
ResultViewerBase
Namespace: WealthLab.WPF
Parent: UserControl
Descendants: VisualizerBase , OptimizationVisualizerBase , StrategyEvolverVisualizerBase

Derived from WPF UserControl, serves as a base class for WL8 Visualizers.

Members
Cleanup
public virtual void Cleanup()

WL8 calls this method when your Viewer is about to be unloaded from the host window. Perform any required cleanup here.


DisableGlyphReverse
public virtual bool DisableGlyphReverse

WL8 will reverse an item's GlyphResource image when it is operating in a Dark Theme. If you do not wish the image to be reversed in this manner, return true here.


GlyphResource
public virtual string GlyphResource

Return a string that describes an Embedded Resource in the .NET library that should be used as the icon in the Visualizer's tab. If you have an Embedded Resource named MyBitmap.png in the folder Images in your project named SomeCompany.WealthLabUtils, then the corresponding string would be: "SomeCompany.WealthLabUtils.Images.MyBitmap.png".


Initialize
public virtual void Initialize()

WL8 calls this method when your Viewer is first loading into the Strategy/Optimization window. Perform any required initialization here.


ViewerName
public virtual string ViewerName

Return the text that should appear in the Visualizer's tab.



TeeChart Related
ChartSetup
public void ChartSetup(TChart chart)

This helper method sets up an instance of the TeeChart WPF charting component, establishing the proper background color for the selected theme, and setting the fonts and gridline colors to the standard ones used in WL8. If you wish to use TeeChart charting components in your Viewer, be sure to use the same package and version that's included in WL8, that is Steema.TeeChart.NET (4.2024.1.19).


CreateAreaSeries
public Area CreateAreaSeries(TChart chart, Color color, string title)

Creates and returns a TeeChart Area chart series. This is the type of chart used in WL8's Equity Curve and Drawdown Curve Visualizers.


CreateBarSeries
public Bar CreateBarSeries(TChart chart, Color color, string title)

Creates and returns a TeeChart Bar chart series. This is the type of chart used in WL8's Profit Distribution Visualizer.


CreateErrorBarSeries
public ErrorBar CreateErrorBarSeries(TChart chart, Color color, ErrorStyles errorStyle, string title)

Creates and returns a TeeChart ErrorBar chart series.


CreateFastLineSeries
public FastLine CreateFastLineSeries(TChart chart, Color color, string title)

Creates and returns a TeeChart FastLine chart series. This is the type of chart used in NeuroLab's training graph.


CreateGanttSeries
public Gantt CreateGanttSeries(TChart chart, Color color, string title)

Creates and returns a TeeChart Gantt chart series. This is the type of series used to display the WFO optimization windows.


CreateLineSeries
public Steema.TeeChart.Styles.Line CreateLineSeries(TChart chart, Color color, string title)

Creates and returns a TeeChart Line chart series.


CreatePieSeries
public Pie CreatePieSeries(TChart chart, Color color, string title)

Creates and returns a TeeChart Pie chart series. This is the type of chart used in WL8 PowerPack's Contribution Visualizer.


CreatePointsSeries
public Points CreatePointsSeries(TChart chart, Color color, string title)

Creates and returns a TeeChart Point chart series. This is the type of series used in WL8 Power Pack's Analysis Series Visualizer.


ResetChartZoom
public void ResetChartZoom(TChart chart)

Causes the TeeChart chart to reset back to an unzoomed state after the user has zoomed in on a portion of the chart.