public override Control GetControl() { JwRowLayout c = new JwRowLayout(); JwVerticalLayout v; v = new JwVerticalLayout(); v.SetPreferredSize(60, 200); v.AddGap(10, Color.Red); v.AddGap(30, Color.Green); v.AddGap(50, Color.Blue); c.AddLabel("default"); c.AddSolidBorder().Add(v); v = new JwVerticalLayout(); v.SetPreferredSize(60, 200); v.AlignCenter(); v.AddGap(10, Color.Red); v.AddGap(30, Color.Green); v.AddGap(50, Color.Blue); c.AddLabel("align center"); c.AddSolidBorder().Add(v); v = new JwVerticalLayout(); v.SetPreferredSize(60, 200); v.AlignRight(); v.AddGap(10, Color.Red); v.AddGap(30, Color.Green); v.AddGap(50, Color.Blue); c.AddLabel("align right"); c.AddSolidBorder().Add(v); v = new JwVerticalLayout(); v.SetPreferredSize(60, 200); v.AlignBottom(); v.AddGap(10, Color.Red); v.AddGap(30, Color.Green); v.AddGap(50, Color.Blue); c.AddLabel("align bottom"); c.AddSolidBorder().Add(v); JwVerticalLayout e; e = new JwVerticalLayout(); e.Add(c); return e; }
public override Control GetControl() { JwRowLayout c = new JwRowLayout(); JwVerticalLayout v; v = new JwVerticalLayout(); v.SetPreferredSize(60, 200); v.AddGap(10, Color.Red); v.AddGap(30, Color.Green); v.AddGap(50, Color.Blue); c.AddLabel("default"); c.AddSolidBorder().Add(v); v = new JwVerticalLayout(); v.SetPreferredSize(60, 200); v.ControlWidth.BeFill(); v.AddGap(10, Color.Red); v.AddGap(30, Color.Green); v.AddGap(50, Color.Blue); c.AddLabel("fill width"); c.AddSolidBorder().Add(v); v = new JwVerticalLayout(); v.SetPreferredSize(60, 200); v.ControlHeight.BeFill(); v.AddGap(10, Color.Red); v.AddGap(30, Color.Green); v.AddGap(50, Color.Blue); c.AddLabel("fill height"); c.AddSolidBorder().Add(v); JwVerticalLayout e; e = new JwVerticalLayout(); e.Add(c); return e; }