@*   Xafari Framework version : 17.2.3011.1336   *@

@using DevExpress.ExpressApp.Utils
@using Xafari.Mvc.Controls

@model DevExpress.ExpressApp.View

@{
    var showImage = ViewImageControl.ShowImage;
    var imageName = ViewImageNameHelper.GetImageName(this.Model);

    //SendStateToClient()
    ClientServerInfo clientServerInfo = MvcApplication.Instance.ClientServerInfo;
    if (clientServerInfo != null)
    {
        string viewImageState = "ShowImage:" + showImage.ToString();
        if (showImage)
        {
            viewImageState = viewImageState + "/" + imageName;
        }

        clientServerInfo.SetValue("ClientViewImageCaptionState", viewImageState);
    }
    //
}

@if (ViewImageControl.ShowImage)
{
    <div id="VIC" class="ViewImage">
        @Html.Xafari().LargeImageInfo(imageName).GetHtml()
    </div>
}


