locked
Adding items in Windows.UI.Xaml.Controls::ComboBox

    Question

  • I am working WinRT Application.I have added a combo box(Windows.UI.Xaml.Controls::ComboBox). I am not able to insert items in to it. Any idea how to insert items in the ComboxBox.
    Thursday, November 10, 2011 8:26 AM

Answers

  • should be Items::Append

    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
    Visual C++ MVP
    • Marked as answer by chris_vr Thursday, November 10, 2011 10:22 AM
    Thursday, November 10, 2011 9:10 AM

All replies

  • should be Items::Append

    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
    Visual C++ MVP
    • Marked as answer by chris_vr Thursday, November 10, 2011 10:22 AM
    Thursday, November 10, 2011 9:10 AM
  • Sheng's answered your query. Adding to his answer.

    A more recommended approach would be to use data-binding instead of manually accessing the control and populating it.  Here that would involve setting the ItemsSource property.


    http://blog.voidnish.com
    Thursday, November 10, 2011 2:10 PM