You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MyraEnvironment.Game = this;
var grid = new Grid();
grid.ColumnsProportions.Add(new Proportion(ProportionType.Pixels,200));
grid.ColumnsProportions.Add(new Proportion(ProportionType.Fill));
grid.RowsProportions.Add(new Proportion(ProportionType.Fill));
//
var vertical1 = new VerticalStackPanel();
var labelLeft = new Label
{
Text = "Very-very long text in the left column with broken ellipsis method",
AutoEllipsisMethod = AutoEllipsisMethod.Character,
Wrap = true,
HorizontalAlignment = HorizontalAlignment.Left
};
vertical1.Widgets.Add(labelLeft);
grid.Widgets.Add(vertical1);
Grid.SetColumn(vertical1, 0);
Grid.SetRow(vertical1, 0);
//
var labelRight = new Label
{
Text = "RIGHT TEXT",
AutoEllipsisMethod = AutoEllipsisMethod.Character
};
grid.Widgets.Add(labelRight);
Grid.SetColumn(labelRight, 1);
Grid.SetRow(labelRight, 0);
//
desktop = new Desktop();
desktop.Root = grid;
The text was updated successfully, but these errors were encountered:
I expect to get something like this:
What I get:
And if we add "Wrap=true" to left label:
Maybe I do something wrong?
Full code:
The text was updated successfully, but these errors were encountered: