protected virtual void LayoutChild(IWindowsElement child, Rectangle bounds) { if ((child != null) && child.GetVisible()) { child.Layout(Control.DisplayRectangle); } }
protected override void RemoveChild(INode child) { base.RemoveChild(child); if (child == _rootElement) { _rootElement = null; } }
protected override void AddChild(INode child) { base.AddChild(child); if (child is IWindowsElement) { _rootElement = (IWindowsElement)child; } }
protected override void LayoutChild(IWindowsElement child, Rectangle bounds) { if ((child != null) && child.GetVisible()) { switch (TitleAlignment) { case TitleAlignment.Top: bounds.Height -= _labelPixelSize.Height + LabelVSpacing; break; case TitleAlignment.Left: bounds.Width -= _labelPixelSize.Width + LabelHSpacing; break; } child.Layout(new Rectangle(Control.DisplayRectangle.Location, bounds.Size - (Control.Size - Control.DisplayRectangle.Size))); } }
protected override void RemoveChild(INode child) { _child = null; base.RemoveChild(child); }
protected override void AddChild(INode child) { base.AddChild(child); _child = (IWindowsElement)child; }
private void UpdateActiveControl(IWindowsElement node) { _form.SetHintText((node != null) ? node.GetHint() : String.Empty); _form.UpdateStatusText(); }
public FocusChangedEvent(IWindowsElement node) { _node = node; }