OnRender()
<< Click to Display Table of Contents >> OnRender() |
Used to draw custom content to a Market Analyzer Column, such as a graph.
•The Market Analyzer is scrolled
•The user changes the Market Analyzer's properties through the Properties menu
•The Market Analyzer first loads (e.g. restoring from a workspace)
•The height / width of the Market Analyzer window changes
•A user re-sizes the content area by dragging the splitter between the columns
Note: While similar to a Chart Indicator's OnRender() method, the Market Analyzer Column uses WPF Drawing Context class, rather than the SharpDX library used for chart rendering. Concepts between these two methods are guaranteed to be different. |
This method does not return a value.
protected override void OnRender(DrawingContext dc, System.Windows.Size renderSize)
{
}
dc |
The drawing context for the column |
renderSize |
The rendering size for the column |
Tip: In order to force OnRender() to be called under a specific condition, call the OnPropertyChanged() method which will force the entire column to repaint. This approach should be used instead of calling OnRender() directly. |
protected override void OnRender(DrawingContext dc, System.Windows.Size renderSize) |