@inherits UComponentBase
@{try{
<!--=============================================================================================-->
<ServiceDialogFrame @ref=@ServiceDialog>
@if (IsOpen)
{
<div @ref=@LayoutDIV id="messagebox_LayoutDIV" tabindex="-1">
   <div id="messagebox_HeaderDIV">
      <div id="messagebox_TitleDIV">@Title</div>
      <div id="messagebox_CloseWindowDIV">
         <a id="messagebox_CloseWindowA" class=@CloseWindowDivClasses
            href="#close" tabindex="-1" onfocus="messagebox_LayoutDIV.focus()"
            @onclick=@CloseWindowA_OnClick @onclick:preventDefault>X</a>
      </div>
   </div>
   <img id="messagebox_DialogIconIMG" src=@ImagePath />
   <div id="messagebox_MiddleDIV">
      <div id="messagebox_ContentDIV">
         <span @ref=@DialogTextSPAN id="messagebox_DialogTextSPAN">@Text</span>
      </div>
   </div>
   <div id="messagebox_FooterDIV">
      @if (HasAcceptButton)
      {
      <button @ref=@AcceptBUTTON id="messagebox_AcceptBUTTON" type="button"
              class="btn btn-primary messagebox_BUTTON" tabindex=@AcceptButtonTabIdx
              @onclick=@AcceptBUTTON_OnClick>@AcceptButtonCaption</button>
      }
      @if (HasXAcceptButton)
      {
      <button @ref=@XAcceptBUTTON id="messagebox_XAcceptBUTTON" type="button"
              class="btn btn-secondary messagebox_BUTTON" tabindex=@XAcceptButtonTabIdx
              @onclick=@XAcceptBUTTON_OnClick>@XAcceptButtonCaption</button>
      }
      @if (HasCloseButton)
      {
      <button @ref=@CloseBUTTON id="messagebox_CloseBUTTON" type="button"
              class="btn btn-secondary messagebox_BUTTON" tabindex=@CloseButtonTabIdx
              @onclick=@CloseBUTTON_OnClick>@CloseButtonCaption</button>
      }
   </div>
</div>
}
</ServiceDialogFrame>
<!--=============================================================================================-->
}catch(Exception e){ProcessRenderingError(GetType(),e);}}
