public LayoutHost(LayoutControl container) { _containter = container; CreateSelectedEditBoxManager(); SetScaleRulerHelper(); SetDPI(); AttachEvents(); CreateLayoutRuntime(); _drawArgs = new DrawArgs(_layoutRuntime); }
public Bitmap GetOverview(Size size) { using (LayoutControl lc = new LayoutControl()) { lc.Width = size.Width; lc.Height = size.Height; ILayoutHost host = new LayoutHost(lc); (host as LayoutHost)._template = this; host.LayoutRuntime.ChangeLayout(_layout); (host as LayoutHost)._layout = _layout; host.ToSuitedSize(_layout); return(host.SaveToBitmap()); } }