public Control MakeNestNamePanel() { _nameLabel = VmUiBuilder.MakeSmallValueLabel("XXXXXXXXXXXXXXXX"); _nameLabel.AlignRight(); JwVerticalLayout v = new JwVerticalLayout(); // v.ControlWidth.BeFill(); v.AlignBottom(); v.AlignRight(); v.Add(_nameLabel); // return v; return _nameLabel; }
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; }