locked
append a grid inside a stack panel

    Question

  • I have a stack panel inside a ScrollViewer. I need to Append a grid inside that stack panel.

    I try this

    stackPanel->Children->Append(uiGrid);

    But it's not working.


    • Edited by Remya P Friday, July 27, 2012 3:47 AM
    Friday, July 27, 2012 3:45 AM

Answers

  • hi Remya.

    just try this code.

    stackPanel->Children->InsertAt(0,uiGrid);

    Regards,

    Sarath S


    • Edited by Bilaal John S Friday, July 27, 2012 7:28 AM
    • Proposed as answer by Bilaal John S Friday, July 27, 2012 8:11 AM
    • Unproposed as answer by Bilaal John S Monday, August 6, 2012 4:24 AM
    • Marked as answer by Jesse Jiang Friday, August 10, 2012 6:43 AM
    Friday, July 27, 2012 7:27 AM