The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

NestedFrame.ViewItem Property

Provides access to the View Item that uses the NestedFrame.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v19.2.dll

Declaration

public ViewItem ViewItem { get; }
Public ReadOnly Property ViewItem As ViewItem
public ViewItem ViewItem { get; }
Public ReadOnly Property ViewItem As ViewItem
public ViewItem ViewItem { get; }
Public ReadOnly Property ViewItem As ViewItem

Property Value

Type Description
ViewItem

A ViewItem that uses the nested Frame.

Property Value

Type Description
ViewItem

A ViewItem that uses the nested Frame.

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