protected override void OnStartDemo(SampleViewport viewport)
{
////==================================================
//html box
var htmlHost = HtmlHostCreatorHelper.CreateHtmlHost(viewport, null, null);
var htmlBox = new HtmlBox(htmlHost, 800, 400);
StringBuilder stbuilder = new StringBuilder();
stbuilder.Append("<html><head></head><body>");
stbuilder.Append("<div>custom box1</div>");
stbuilder.Append("<x id=\"my_custombox1\"></x>");
stbuilder.Append("<div>custom box2</div>");
stbuilder.Append("<x type=\"textbox\" id=\"my_custombox1\"></x>");
stbuilder.Append("</body></html>");
htmlBox.LoadHtmlString(stbuilder.ToString());
viewport.AddContent(htmlBox);
//==================================================
//textbox
var textbox = new LayoutFarm.CustomWidgets.TextBox(400, 100, true);
textbox.SetLocation(0, 200);
viewport.AddContent(textbox);
textbox.Focus();
}
}