Jun 12, 2014, 11:13 AM
[CLOSED] Design with complex layout
Hi
Trying to design a form inside window (Screen shot attached) like attached image.
for that i write a sample code,but not success.
Thanks in advance
Trying to design a form inside window (Screen shot attached) like attached image.
for that i write a sample code,but not success.
@X.ResourceManager()
@(X.Window()
.Height(300)
.Width(510)
.Resizable(false)
.ButtonAlign(Alignment.Left)
.BodyStyle("background-color:#FFFFFF")
.Items(
X.Panel()
.Height(50)
.Width(500)
.Region(Region.North)
,
X.Panel()
.BodyPadding(10)
.Width(500)
.Items(
X.FormPanel()
.AutoScroll(true)
.Layout(LayoutType.Fit)
.Border(false)
.Items(
X.Panel()
.Flex(1)
.Border(false)
.Layout(LayoutType.Anchor)
.DefaultAnchor("100%")
.Items(
X.TextField().FieldLabel("Alignment Test"),
X.Checkbox().BoxLabel("Dog").FieldLabel("Favorite Animals"),
X.Checkbox().BoxLabel("Cat"),
X.Checkbox().BoxLabel("Monkey").Checked(true)
),
X.FieldSet()
.Flex(1)
.Title("Individual Checkboxes")
.DefaultAnchor("100%")
.Defaults(X.Parameter().Name("HideEmptyLabel").Value("false").Mode(ParameterMode.Raw))
.Items(
X.TextField()
.FieldLabel("Textbox 1"),
X.TextField()
.FieldLabel("Textbox 1"),
X.TextField()
.FieldLabel("Textbox 1"),
X.TextField()
.FieldLabel("Textbox 1")
),
X.FieldSet()
.Flex(1)
.Title("Individual Checkboxes")
.DefaultAnchor("100%")
.Defaults(X.Parameter().Name("HideEmptyLabel").Value("false").Mode(ParameterMode.Raw))
.Items(
X.TextField()
.FieldLabel("Textbox 1"),
X.TextField()
.FieldLabel("Textbox 1"),
X.TextField()
.FieldLabel("Textbox 1"),
X.TextField()
.FieldLabel("Textbox 1")
),
X.FieldSet()
.Flex(1)
.Title("Individual Checkboxes")
.DefaultAnchor("100%")
.Defaults(X.Parameter().Name("HideEmptyLabel").Value("false").Mode(ParameterMode.Raw))
.Items(
X.TextField()
.FieldLabel("Textbox 1"),
X.TextField()
.FieldLabel("Textbox 1"),
X.TextField()
.FieldLabel("Textbox 1"),
X.TextField()
.FieldLabel("Textbox 1"),
X.TextField()
.FieldLabel("Textbox 1")
)
)
)
)
)
But not getting desired out put.can you please help?Thanks in advance
Last edited by Daniil; Jun 17, 2014 at 11:43 AM.
Reason: [CLOSED]