Link to home
Start Free TrialLog in
Avatar of Sid Price
Sid PriceFlag for United States of America

asked on

WPF - Tooltips for ComboBox items

I have a number of ComboBoxes in my WPF application that are generated programmatic ally based upon input data files. These data files have descriptive text that I would like to add to each item in the ComboBox. However, I can't find out how to do that. The code that generates the ComboBox items (VB.NET) is simple:

    Dim newObject As New NameValuePair() With {.Name = strName, .Value = iValue}
    cmboSelector.Items.Add(newObject)

Open in new window


How can I attach a tooltip to the items as they are created?
Thanks,
Sid
SOLUTION
Avatar of louisfr
louisfr

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Sid Price

ASKER

Interesting, however there is no XAML for the ComboBox, as I said in my question they are created programmatically. How can this technique be applied in that case.

Many thanks,
Sid
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Excellent I will give that a try, many thanks for the great help,
Sid