Beispiel #1
0
        public override Control GetControl()
        {
            JwVerticalLayout v = new JwVerticalLayout();
            JwSolidBorder b;

            b = new JwSolidBorder(2);
            b.SetPreferredSize(100, 50);
            b.ControlLayout.HorizontalFill = false;
            b.ControlLayout.VerticalFill = false;
            b.ControlLayout.AlignLeft();
            b.ControlLayout.AlignTop();
            b.AddSolidBorder(Color.Red).AddLabel("top left");
            v.Add(b);

            b = new JwSolidBorder(2);
            b.SetPreferredSize(100, 50);
            b.ControlLayout.HorizontalFill = false;
            b.ControlLayout.VerticalFill = false;
            b.ControlLayout.AlignCenter();
            b.ControlLayout.AlignBottom();
            b.AddSolidBorder(Color.Red).AddLabel("bottom center");
            v.Add(b);

            b = new JwSolidBorder(2);
            b.SetPreferredSize(100, 50);
            b.ControlLayout.HorizontalFill = true;
            b.ControlLayout.VerticalFill = false;
            b.ControlLayout.AlignMiddle();
            b.AddSolidBorder(Color.Red).AddLabel("hFill middle");
            v.Add(b);

            return v;
        }