Adding more than Data In Windows.UI.Xaml.Controls::ComboBox /// Metro Style App RRS feed

  • Question

  • I want to Store Two Value in Windows.UI.Xaml.Controls::ComboBox

    1. String Which Will be Displayed in the Combo

    2. Some Id used to refer a Data In the Map.

    Is there anyway to do this in WinRT Metro App

    Wednesday, November 16, 2011 1:07 PM


  • There are two common approaches to do this:

    1) Use an item template and show the two pieces of data in separate controls.

    2) Bind to a property in the data-class that returns a string that's a formatted concatenation of the two values.

    • Marked as answer by chris_vr Thursday, November 17, 2011 12:15 PM
    Wednesday, November 16, 2011 3:18 PM