Answered XAML Question

  • Tuesday, May 31, 2011 7:34 PM
     
     

    I have a simple form with two textboxes with labels on left hand side, then going down vertically a label and right under the label a listview.

    I tried several different things including margins and grid and grid.rows but no luck, the elements keep getting chopped off. Whats the best way to do it ? 

     

    Also do you know any Jumpstart tutorial of XAML ? I expected XAML to be as simple as HTML in layouts


    Fahad

All Replies

  • Tuesday, May 31, 2011 7:44 PM
     
     
    What is the problem. TextBob Label or Listview or all?
    Kenneth
  • Tuesday, May 31, 2011 7:50 PM
     
     
    Best way is to use a grid with column and row definitions.  Assign your controls the row and columns appropriately.  Remember you can use ColumnSpan and RowSpan as well to go across multiples.  Also, don't specify widths or heights for your controls, they will autosize with the grid. 
  • Tuesday, May 31, 2011 7:55 PM
     
     Answered
    Or use StackPanel and Wrappanels instead of Grid
    Kenneth
    • Marked As Answer by Fahad349 Tuesday, May 31, 2011 7:56 PM
    •  
  • Wednesday, June 01, 2011 2:14 AM
    Moderator
     
     Answered

    Hi Fahad349,

    See Panels Overview and Layout System for more information about this.


    Min Zhu [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked As Answer by Fahad349 Wednesday, June 01, 2011 12:32 PM
    •