OnRender()
<< Click to Display Table of Contents >> OnRender() |
Used to draw custom content to the SuperDOM Column, such as a Grid.
•The SuperDOM is centered (either automatically or when the user presses the Center button)
•The SuperDOM is scrolled
•All accounts are disconnected
•A simulation account is reset
•A position is updated
•The user changes the SuperDOM's properties through the Properties menu
•The SuperDOM first loads (e.g. restoring from a workspace)
•The user changes the PnL display unit by clicking on the Position display
•The height/width of the SuperDOM window changes
•A user resizes the content area by dragging the splitter between price ladder and the columns
Note: While similar to a Chart Indicator's OnRender() method, the SuperDOM 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, double renderWidth)
{
}
dc |
The drawing context for the column |
renderWidth |
The rendering width 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, double renderWidth) |