测试代码高亮
var pageInfo = FrameRibbon.CalcHitInfo(e.Location);if (pageInfo.Page == null || pageInfo.Page.PageIndex == 0)
{
ClearRPCButtonRect();
return;
}
//获取当前PageHeader信息
var headerInfo = pageInfo.Page.PageInfo.GetHeaderPageInfo();
//关闭按钮的大小
RPCButtonRect.Size = PageCloseButtonSize;
//刷新关闭按钮的位置
RPCButtonRect.X = headerInfo.Bounds.Right - PageCloseButtonSize.Width - 3;
RPCButtonRect.Y = (headerInfo.Bounds.Bottom - PageCloseButtonSize.Height) / 2;
//当鼠标移动至PageHeader时Refresh显示关闭按钮
if (Core.BoundsContains(headerInfo.Bounds))
FrameRibbon.Refresh();
else
ClearRPCButtonRect();
页:
[1]