private static IWidget Popup(DemoState state) { var box = new BorderWidget() { Child = new SizeWidget() { Size = new BoxConstraint(15, 10), Child = new AlignmentWidget() { VerticalAlignment = Alignment.Middle, HorizontalAlignment = Alignment.Middle, Child = new LabelWidget() { Content = "Test" } } } }; return(new PositionedWidget(box) { Absolute = true, Location = new Point(0, 0), }); }
public ArtistBox() { this.DisplayWidget = box; BorderWidget image_border = new BorderWidget (artist_image); artist_label.Xalign = 0; box.PackStart (artist_label, false, false, 0); box.PackStart (image_border, false, false, 5); }