Skip to main content
.NET 8.0+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ViewController.TargetViewNesting Property

Specifies whether the View for which a View Controller is intended must be root, nested or any.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

[DefaultValue(Nesting.Any)]
public Nesting TargetViewNesting { get; set; }

#Property Value

Type Default Description
Nesting Any

A Nesting enumeration value identifying a View kind.

Available values:

Name Description
Any

An Action or a View Controller will be activated in Frames (Windows) with any Views.

Root

An Action or a View Controller will be activated in Frames (Windows) which contain root Views (see View.IsRoot).

Nested

An Action or a View Controller will be activated in Frames (Windows) which contain nested Views (the View.IsRoot property is set to false).

#Remarks

View Controllers are activated for both Windows and Frames. However, you can specify the View kind to provide a View Controller activation within the Window or Frame via the TargetViewNesting property.

Note

The TargetViewNesting property affects only ViewController’s activation. Controller.FrameAssigned and other events that are irrelevant to the view nesting always fire.

See Also