ClsWin
API Reference
>
ClsWin
| SoapAction | n/a |
| Input Name | ClsWin |
| Output Name | ClsWinResponse |
| Input Namespace | n/a |
| Group Name | Xperience |
| Container | XP_MsgBus.xsd |
Did this page help you?
Last updated Mon Dec 9 2024
| SoapAction | n/a |
| Input Name | ClsWin |
| Output Name | ClsWinResponse |
| Input Namespace | n/a |
| Group Name | Xperience |
| Container | XP_MsgBus.xsd |
private void HandleCloseRequest(ISubscribedMessageContext context)
{
if (context.Message == null || string.IsNullOrWhiteSpace(context.Message.WinId))
{
return;
}
var hostedWindow = XperienceContext.Current.WindowManager.GetByWindowId(context.Message.WinId);
if (hostedWindow != null)
{
if (this.ShouldAllowClose())
{
hostedWindow.Close();
}
else
{
hostedWindow.CancelClose();
}
}
}