Nov 20, 2013, 2:52 PM
BorderSpec on Panels
I'm having difficulty using the .BorderSpec property to style panel borders
Please see the following example and resulting render
Essentially, I want border lines on the left and right of the middle panel, but it seems regardless of the BorderSpec setting, borders are rendered exactly as shown.
Please see the following example and resulting render
X.Panel()
.Layout(LayoutType.Column)
.Items(
X.Panel()
.ColumnWidth(0.65)
.Title("Width=0.65")
.Border(false)
.Items(
X.TextArea()
.ID("testTA")
)
,
X.Panel()
.ColumnWidth(0.35)
.Border(true)
.BorderSpec("0 1 0 1")
.Title("Width=0.35")
.Items(
X.TextArea()
.ID("testTA5")
)
,
X.Panel()
.Width(400)
.Border(false)
.Title("Metrics")
.Items(
X.TextArea()
.ID("testTA4")
)
)
Essentially, I want border lines on the left and right of the middle panel, but it seems regardless of the BorderSpec setting, borders are rendered exactly as shown.