Back to Devexpress

ShowViewParameters.CreateAllControllers Property

expressappframework-devexpress-dot-expressapp-dot-showviewparameters-c4754c1e.md

latest3.7 KB
Original Source

ShowViewParameters.CreateAllControllers Property

Specifies whether all Controllers relevant to the target View or its Window must be created.

Namespace : DevExpress.ExpressApp

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
[DefaultValue(true)]
public bool CreateAllControllers { get; set; }
vb
<DefaultValue(True)>
Public Property CreateAllControllers As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true to create all relevant Controllers; false to create Controllers only from the Controllers collection.

|

Remarks

When you display a View, the following Controllers are created:

Disable the CreateAllControllers property to create Controllers only from the Controllers collection. In this case, add the FillActionContainersController to the Controllers collection to display the Actions’ buttons in the Template.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CreateAllControllers property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

xaf-win-custom-button-in-lookup-property-editor/CS/WinSolution.Module.Win/MyLookupPropertyEditor.cs#L35

csharp
svp.Context = TemplateContext.View;
svp.CreateAllControllers = true;
ShowViewSource svs = new ShowViewSource(Helper.Application.MainWindow, null);

xaf-win-custom-button-in-lookup-property-editor/VB/WinSolution.Module.Win/MyLookupPropertyEditor.vb#L42

vb
svp.Context = TemplateContext.View
svp.CreateAllControllers = True
Dim svs As ShowViewSource = New ShowViewSource(Helper.Application.MainWindow, Nothing)

See Also

ShowViewParameters Class

ShowViewParameters Members

DevExpress.ExpressApp Namespace