Hi,
using the Rhino.UI.Controls.Divider
it seems to work fine as long as the Divider
has a horizonal orientation. When using the Divider
in a StackLayout
:
StackLayout layout = new StackLayout
{
HorizontalContentAlignment = HorizontalAlignment.Stretch,
VerticalContentAlignment = VerticalAlignment.Center,
Orientation = Orientation.Horizontal,
Padding = new Padding(0),
Spacing = 0,
Height = 19,
Items =
{
// Doesn't show up
new StackLayoutItem(new Divider { Color = this.ViewModel.NormalBorderColor, Size = new Size(1, 19), Width = 1, Height = 19 }),
new StackLayoutItem(new Divider { Color = Colors.Transparent, Width = 2 }),
new StackLayoutItem(dataSetColourButtonLayout),
new StackLayoutItem(new Divider { Color = Colors.Transparent }, HorizontalAlignment.Stretch, true),
// Doesn't show up
new StackLayoutItem(new Divider { Color = this.ViewModel.NormalBorderColor, Size = new Size(1, 19) }),
}
};
this.Items.Add(new StackLayoutItem(layout, VerticalAlignment.Top, true));
// Does show up
this.Items.Add(new StackLayoutItem(new Divider { Color = this.ViewModel.NormalBorderColor, Height = 1 }, VerticalAlignment.Bottom, false));
I get this layout shown up in the UI.
What am I doing wrong?
Kindest
Christian