Skip to main content
All docs
V25.1
  • Tab

    DialogViewModelBase.GetNestedViewModel<TChildViewModel>(Expression<Func<TChildViewModel>>, Func<TChildViewModel>) Method

    Returns the nested view model.

    Namespace: DevExpress.Web

    Assembly: DevExpress.Web.v25.1.dll

    NuGet Package: DevExpress.Web

    Declaration

    public TChildViewModel GetNestedViewModel<TChildViewModel>(
        Expression<Func<TChildViewModel>> getter,
        Func<TChildViewModel> createDelegate
    )
        where TChildViewModel : DialogViewModelBase

    Parameters

    Name Type Description
    getter Expression<Func<TChildViewModel>>

    The expression.

    createDelegate Func<TChildViewModel>

    A delegate method.

    Type Parameters

    Name Description
    TChildViewModel

    The type of the nested view model.

    Returns

    Type Description
    TChildViewModel

    The nested view model.

    See Also