以下在MainUI中添加
public void AfterCreateChildControls()
{
if (NavigateManager.IsTitleLink(this))
{
this.BtnOk.Visible = true;
this.BtnClose.Visible = true;
}
else
{
this.BtnOk.Visible = false;
this.BtnClose.Visible = false;
}
}