Search Framework:
IWLClientHost
Namespace: WealthLab.WPF
Parent:

The IWLClientHost interface provides properties and methods that allow ChildWindow instances, charts, and client extensions to communicate with the main WL9 window. It provides access to navigation, Strategy windows, chart coordination, streaming, theming, sounds, extension services, and other features of the WL9 user interface. The primary IWLClientHost instance is also available through WLClientHost.Instance.

Members
ActivateOrderManager
void ActivateOrderManager()

Opens the WL9 Order Manager and brings it into focus.


ActivateStreaming
void ActivateStreaming(bool activate)

Turns streaming on or off for charts in WL9. Pass true in activate to enable streaming, or false to disable it.


AllowAutoTrading
bool AllowAutoTrading

Returns true if the user has agreed to the WL9 Auto-Trading Agreement.


ChartMouseBarNumberChange
void ChartMouseBarNumberChange(BarHistory bars, int idx)

Notifies WL9 that the mouse has moved to a different bar in a chart. The bars parameter contains the BarHistory being charted and idx contains the current bar index.


ChartSymbol
void ChartSymbol(string windowID, string symbol, DataSet ds = null)

Charts the specified symbol in the chart window identified by windowID. Optionally pass a DataSet in ds to specify the preferred DataSet to use when obtaining historical data.


ChartSymbolChanged
void ChartSymbolChanged(string symbol, object chartInstance)

Notifies WL9 that a chart's symbol was manually changed. WL9 uses this notification to support linked chart windows.


ChildWindowActivated
void ChildWindowActivated(ChildWindow cw)

Notifies WL9 that the ChildWindow specified in cw has been activated.


ChildWindowDeactivated
void ChildWindowDeactivated(ChildWindow cw)

Notifies WL9 that the ChildWindow specified in cw has been deactivated.


ContainerHeight
double ContainerHeight

Returns the height of the WL9 main MDI container.


ContainerScrollBarsEnabled
bool ContainerScrollBarsEnabled

Returns true if scroll bars are currently enabled in the WL9 MDI container.


ContainerWidth
double ContainerWidth

Returns the width of the WL9 main MDI container.


ContextMenuOpened
void ContextMenuOpened(ContextMenu cm)

Notifies WL9 that the ContextMenu specified in cm has opened. This allows WL9 to perform any required processing for the context menu.


CreateChildWindowMenu
void CreateChildWindowMenu(MDIChild child)

Creates the main menu entry associated with the specified MDIChild window. This is used internally when integrating ChildWindow instances into the WL9 MDI interface.


DisplayHelpTipText
void DisplayHelpTipText(string topic, string help)

Displays context-sensitive help text in the WL9 Help panel. The topic parameter specifies the help topic and help contains the text to display.


DrawingButtonClicked
void DrawingButtonClicked(object dob)

Notifies WL9 that a chart drawing object button was clicked, allowing the corresponding drawing button state to be updated.


ExtensionsFactory
ClientExtensionFactory ExtensionsFactory

Returns the ClientExtensionFactory instance that manages installed WL9 client extensions.


IsCrosshairSynced
bool IsCrosshairSynced

Returns true if crosshair synchronization is currently enabled for this WL9 window.


IsDarkTheme
bool IsDarkTheme

Returns true if the currently selected WL9 Theme is a dark Theme.


LockToolbarVisibility
void LockToolbarVisibility(bool locked)

Controls whether chart toolbar visibility is locked. Pass true in locked to lock toolbar visibility, or false to allow normal toolbar visibility behavior.


OpenAndRunStrategy
void OpenAndRunStrategy(Strategy s)

Opens a new Strategy window containing the Strategy specified in s, then runs a backtest for the Strategy.


OpenQuotesWindow
void OpenQuotesWindow(SignalBlock sb)

Opens a new Quotes window populated with the price triggers contained in the SignalBlock specified in sb.


OpenStrategy
void OpenStrategy(Strategy s)
void OpenStrategy(SavedOptimizationResults sor)

Opens a new Strategy window. The first overload opens the Strategy specified in s. The second overload opens a Strategy window using the saved optimization results specified in sor.


PlaySound
void PlaySound(string name)

Plays the named WL9 sound specified in name.


RefreshTheme
void RefreshTheme(DependencyObject dobj)

Forces the current Light/Dark Theme to refresh for the WPF DependencyObject specified in dobj. You can call RefreshTheme after controls have been dynamically added or changed in code and need their Theme resources refreshed.


RemoveChildWindowMenu
void RemoveChildWindowMenu(MDIChild child)

Removes the main menu entry associated with the specified MDIChild window. This is used when a ChildWindow is closed.


ShowChartStatusBars
void ShowChartStatusBars(bool show)

Shows or hides chart status bars throughout the WL9 client.


ShowDataManager
ChildWindow ShowDataManager(string pageName = null, string providerName = null)

Opens the WL9 Data Manager and returns its ChildWindow instance. Optionally pass pageName to select a specific Data Manager page. When applicable, pass providerName to select a specific Provider on that page.


ShowExtensionChildWindow
void ShowExtensionChildWindow(ChildWindow cw, string title, ImageSource glyph)

Opens the ChildWindow specified in cw as an extension window, using title for the window title and the WPF ImageSource specified in glyph for its icon.


ShowHelpPage
void ShowHelpPage(string page)

Opens the WL9 Help system and navigates to the Help topic specified in page.


ShowIndicator
void ShowIndicator(string abbr)

Opens the Indicators page in the left navigation panel and selects the indicator whose abbreviation is specified in abbr.


ShowPreferences
void ShowPreferences(string pageName = null)

Opens the WL9 Preferences window. Optionally pass pageName to navigate directly to a specific Preferences page.


ShowQuickRefClass
void ShowQuickRefClass(string className)

Opens the QuickRef pane and navigates to the class specified in className.


ShowQuickRefEntry
void ShowQuickRefEntry(QuickRefEntry entry)
void ShowQuickRefEntry(string className, string itemName)

Opens the QuickRef pane and navigates to a specific QuickRef entry. Pass either a QuickRefEntry instance, or specify the class and member using className and itemName.


ShowViewPage
void ShowViewPage(string page, bool makeVisible = true, bool isHover = false)

Changes the page displayed in the main window's left navigation pane. The page parameter specifies the page to display. makeVisible determines whether the navigation pane should be made visible, and isHover indicates that the page change is occurring as part of hover behavior. Common page values include:

  • "DataSets"
  • "Indicators"
  • "Strategies"
  • "BuildingBlocks"
  • "QuickRef"

SyncCrosshair
void SyncCrosshair(bool sync)
void SyncCrosshair(DateTime dt, double value, string paneName, MarketDetails market)

The first overload enables or disables crosshair synchronization among charts. The second overload performs a crosshair synchronization using the specified dt, y-axis value, paneName, and market.


Title
string Title

Gets or sets the title of the WL9 main window.


UpdateSliders
void UpdateSliders(ParameterList pl)

Updates the Strategy Parameter sliders in the WL9 user interface using the ParameterList specified in pl.