> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Method SetupView

Namespace: [Phoenix.ComponentPlugInSDK](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/2026-r1/apidocs/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.

```csharp theme={null}
protected virtual bool SetupView(IExtractedPacz pacz, ScriptEditorViewModel viewModel, Menu mainMenu)

```

### Parameters

`pacz` IExtractedPacz

The Pacz to load from.

`viewModel` [ScriptEditorViewModel](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/2026-r1/apidocs/Phoenix.ComponentPlugInSDK.ViewModels.ScriptEditorViewModel)

The viewModel that allows interaction with the view.

`mainMenu` [Menu](https://learn.microsoft.com/dotnet/api/system.windows.controls.menu)

The MainMenu to be customized.

### Returns

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

True if the mainMenu should be made visible.
