@*   Xafari Framework version : 17.2.3011.1336   *@

@using DevExpress.ExpressApp.Model
@using Xafari.Mvc
@using Xafari.Mvc.Layout

@model MvcLayoutManager

@{
    var container = this.ViewData[MvcLayoutManager.ContainerKeyForViewData] as LayoutItemContainerBase;
    if (container == null) { return; }

    var layoutItemModel = container.Model;

    if (layoutItemModel is IModelLayoutViewItem && container.Visibility)
    {
        @Html.Xafari().RelativePartial(this.Model.LayoutItemTemplatePartialView, container)
    }
    if (layoutItemModel is IModelLayoutGroup && container.Visibility)
    {
        @Html.Xafari().RelativePartial(this.Model.LayoutGroupTemplatePartialView, container)
    }
    if (layoutItemModel is IModelTabbedGroup && container.Visibility)
    {
        @Html.Xafari().RelativePartial(this.Model.TabbedGroupTemplatePartialView, container)
    }
}

