[CLOSED] Design with complex layout

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [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.


    @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
    Attached Thumbnails Click image for larger version. 

Name:	from.png 
Views:	40 
Size:	54.1 KB 
ID:	12621  
    Last edited by Daniil; Jun 17, 2014 at 11:43 AM. Reason: [CLOSED]

Similar Threads

  1. [CLOSED] Issues with a complex layout of many partials
    By ATLAS in forum 2.x Legacy Premium Help
    Replies: 14
    Last Post: Jul 25, 2013, 5:12 AM
  2. MDI form and Complex Layout
    By themack in forum 1.x Help
    Replies: 0
    Last Post: Sep 25, 2011, 6:20 PM
  3. [CLOSED] Complex Layout
    By jchau in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Jul 08, 2011, 8:10 PM
  4. Design layout
    By warriorvn in forum 1.x Help
    Replies: 1
    Last Post: Jun 05, 2010, 10:07 AM
  5. Replies: 2
    Last Post: Mar 04, 2010, 3:57 PM

Tags for this Thread

Posting Permissions