Skip to main content

Component Plug-In SDK 2026 R1

Constructor VariableBasedBuilderViewModel

Last update: 19.06.2026

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

VariableBasedBuilderViewModel(VariableBasedBuilderModel, ILogger, string, Func<VariableBasedBuilderModel, Task>, Func<string, VariableBasedBuilderViewModel, Task>, Action, Action<Exception>, Uri)

Constructor.

public VariableBasedBuilderViewModel(VariableBasedBuilderModel model, ILogger logger, string componentName, Func<VariableBasedBuilderModel, Task> saveAsync, Func<string, VariableBasedBuilderViewModel, Task> openFileAction, Action closeViewAction, Action<Exception> showErrorAction, Uri icon = null)

Parameters

model VariableBasedBuilderModel

The model representing the variableBasedBuilder.

logger ILogger

The logger to use.

componentName string

The name of the component to use in the View.

saveAsync Func<VariableBasedBuilderModel, Task>

An Async Function to invoke to perform a save operaion.

openFileAction Func<string, VariableBasedBuilderViewModel, Task>

A Function to invoke for the builder to open a file.

closeViewAction Action

An action that closes the window.

showErrorAction Action<Exception>

An action that displays error information to the user.

icon Uri

The optional URI of the icon to use in the view. If null or not specified, the default Windows icon will be used.

Connect with Ansys