public DomElement GetTitleNode(DomElement hostNode)
{
//-------------------------------------
if (titleNode != null) return titleNode;
//create dom node
var ownerdoc = hostNode.OwnerDocument;
this.titleNode = ownerdoc.CreateElement("div");
titleNode.SetAttribute("style", "display:inline");
titleNode.AddChild("span", span =>
{
if (PageTitle == null)
{
span.AddTextContent("");
}
else
{
span.AddTextContent(this.PageTitle);
}
span.AttachMouseDownEvent(e =>
{
if (this.OwnerContainer != null)
{
this.OwnerContainer.ChildNotifyTabMouseDown(this);
}
});
});
////mouse down on title
//titleNode.AttachMouseDownEvent(e =>
//{
//});
//-------------------------------------
return titleNode;
}
public DomElement GetPageBody(DomElement hostNode)