public TextPair(string id, string text, Geometry.Rectangle r, float textEmSize = 15.75f, float split = 0.5f, ContentAlignment textAlign = ContentAlignment.TopLeft) { _label = new ModifiedLabel(id + "_label", text, textEmSize); _label.Reorient(r.SliceVertical(0f, split)); _label.TextAlign = textAlign; _textBox = new ModifiedTextBox(id + "_tb", "0", textEmSize); _textBox.Reorient(r.SliceVertical(split, 1f)); _textBox.KeyPressed = KeyPressed; this._split = split; }
public void reorient(Geometry.Rectangle r) { _label.Reorient(r.SliceVertical(0f, _split)); _textBox.Reorient(r.SliceVertical(_split, 1f)); }