Class WpfDispUtil
Registers WPF as the display framework for DispFrameUtil, supporting multiple windows identified by key.
public static class WpfDispUtil
- Inheritance
-
WpfDispUtil
- Inherited Members
Remarks
Usage pattern: call Call(string, params IDisplayee[]) to queue display content, then call RunApplication() to start the WPF application and show windows.
Each unique key creates a separate RenderingWindow. Calling Call(string, params IDisplayee[]) with the same key updates the existing window.
// Queue display content (before or after Run)
DispFrameUtil.CallDispFrame("Window1", displayee1);
DispFrameUtil.CallDispFrame("Window2", displayee2);
// Start the WPF application (blocks until all windows are closed)
DispFrameWpf.Run();
Methods
Call(string, params IDisplayee[])
Configures the display engine with the specified displayees for the given title.
public static DispEngineConfig Call(string title, params IDisplayee[] displayees)
Parameters
titlestringThe title/key to identify the display window.
displayeesIDisplayee[]The displayees to be configured.
Returns
- DispEngineConfig
The display engine configuration.
Init()
Initializes the display engine.
public static void Init()
RunApplication()
Starts the WPF application and shows all configured windows. Blocks until all windows are closed.
public static void RunApplication()
RunApplication(string, params IDisplayee[])
Configures the display engine with the specified displayees and starts the WPF application.
public static void RunApplication(string title, params IDisplayee[] displayees)
Parameters
titlestringThe title/key to identify the display window.
displayeesIDisplayee[]The displayees to be configured.