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

NestedFrame.ViewItem Property

Provides access to the View Item that uses the NestedFrame.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

public ViewItem ViewItem { get; }

#Property Value

Type Description
ViewItem

A ViewItem that uses the nested Frame.

#Remarks

You can use this property to access the parent View and its object from a Controller activated for the nested Frame.

public partial class MyViewController : ViewController {
    protected override void OnActivated() {
        base.OnActivated();
        NestedFrame nestedFrame = Frame as NestedFrame;
        if (nestedFrame != null) {
            View parentView = nestedFrame.ViewItem.View;
            Object parentObject = parentView.CurrentObject;
        }
    }
}
See Also