예제 #1
0
 protected virtual void LayoutChild(IWindowsElement child, Rectangle bounds)
 {
     if ((child != null) && child.GetVisible())
     {
         child.Layout(Control.DisplayRectangle);
     }
 }
예제 #2
0
 protected override void RemoveChild(INode child)
 {
     base.RemoveChild(child);
     if (child == _rootElement)
     {
         _rootElement = null;
     }
 }
예제 #3
0
 protected override void AddChild(INode child)
 {
     base.AddChild(child);
     if (child is IWindowsElement)
     {
         _rootElement = (IWindowsElement)child;
     }
 }
예제 #4
0
        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)));
            }
        }
예제 #5
0
 protected override void RemoveChild(INode child)
 {
     _child = null;
     base.RemoveChild(child);
 }
예제 #6
0
 protected override void AddChild(INode child)
 {
     base.AddChild(child);
     _child = (IWindowsElement)child;
 }
예제 #7
0
 private void UpdateActiveControl(IWindowsElement node)
 {
     _form.SetHintText((node != null) ? node.GetHint() : String.Empty);
     _form.UpdateStatusText();
 }
예제 #8
0
 public FocusChangedEvent(IWindowsElement node)
 {
     _node = node;
 }