Skip to main content

Component Plug-In SDK 2026 R1

Method SetupView

Last update: 19.06.2026

Namespace: Phoenix.ComponentPlugInSDK
Assembly: Phoenix.ComponentPlugInSDK.dll

SetupView(IExtractedPacz, ScriptEditorViewModel, Menu)

Called before the mainWindow is shown. This is where the view should be initialized. And Builder options loaded from the Pacz. Allows setup and customization of the mainMenu for windows that have them. This should be called by CreateWindow to allow derived classes to customize the menu.

protected virtual bool SetupView(IExtractedPacz pacz, ScriptEditorViewModel viewModel, Menu mainMenu)

Parameters

pacz IExtractedPacz

The Pacz to load from.

viewModel ScriptEditorViewModel

The viewModel that allows interaction with the view.

mainMenu Menu

The MainMenu to be customized.

Returns

bool

True if the mainMenu should be made visible.

Connect with Ansys