Click here to Skip to main content
15,922,427 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Silverlight and Asp.Net Pin
Jason Wilczak20-Mar-09 11:44
Jason Wilczak20-Mar-09 11:44 
QuestionAm I missing someting ? Pin
Christian Graus19-Mar-09 13:04
protectorChristian Graus19-Mar-09 13:04 
AnswerRe: Am I missing someting ? Pin
Mark Salsbery19-Mar-09 14:27
Mark Salsbery19-Mar-09 14:27 
GeneralRe: Am I missing someting ? Pin
Christian Graus19-Mar-09 16:02
protectorChristian Graus19-Mar-09 16:02 
QuestionCPU Usage chart in Silverlight Pin
farhan134219-Mar-09 9:24
farhan134219-Mar-09 9:24 
AnswerRe: CPU Usage chart in Silverlight Pin
Mark Salsbery20-Mar-09 6:30
Mark Salsbery20-Mar-09 6:30 
QuestionDataGridCheckboxColumn bind to EF Many-To-Many Relationship Pin
Wouter Van Ranst19-Mar-09 8:21
Wouter Van Ranst19-Mar-09 8:21 
QuestionWPF ListBox/ComboBox with multiple items of same value Pin
BRShroyer19-Mar-09 3:44
BRShroyer19-Mar-09 3:44 
I have a WPF application with a ListBox containing the following values:

Item0
Item1
Item2
Item3
Item3
Item2

When an item is double-clicked I have a MessageBox showing "item " + ListBox1.SelectedIndex.ToString() + " was selected.". The SelectionMode for the listbox is set to Single.

Everything works fine for the first 4 items, double-clicking Item0 shows item 0 was selected. However, the last two show the first item that matches that value. Double-clicking the second Item3 says item 3 was selected when it should be item 4 and the second Item2 says item 2 was selected when it should say item 5. Also, the selection highlight will highlight both lines and leave one of the duplicates highlighted even when one of the items without a duplicate is selected.

What do I need to do to get the last two items to show that they are the ones being selected? Why is WPF looking at the value instead of the individual items? This works fine with a windows forms listbox.

Thanks for any help,

Brad

"You know you're a geek when... You try to shoo a fly away from the monitor with your cursor. That just happened to me. It was scary." — Juuso Heimonen.

AnswerRe: WPF ListBox/ComboBox with multiple items of same value Pin
ABitSmart19-Mar-09 4:38
ABitSmart19-Mar-09 4:38 
GeneralRe: WPF ListBox/ComboBox with multiple items of same value Pin
BRShroyer19-Mar-09 6:03
BRShroyer19-Mar-09 6:03 
GeneralRe: WPF ListBox/ComboBox with multiple items of same value Pin
w3stfa1129-Nov-09 18:13
w3stfa1129-Nov-09 18:13 
QuestionUIcontrol.Dispatcher.CheckAccess() Pin
Jammer19-Mar-09 1:56
Jammer19-Mar-09 1:56 
AnswerRe: UIcontrol.Dispatcher.CheckAccess() Pin
ABitSmart19-Mar-09 2:23
ABitSmart19-Mar-09 2:23 
GeneralRe: UIcontrol.Dispatcher.CheckAccess() Pin
Jammer19-Mar-09 2:39
Jammer19-Mar-09 2:39 
AnswerRe: UIcontrol.Dispatcher.CheckAccess() Pin
Pete O'Hanlon19-Mar-09 2:23
mvePete O'Hanlon19-Mar-09 2:23 
GeneralRe: UIcontrol.Dispatcher.CheckAccess() Pin
Jammer19-Mar-09 2:43
Jammer19-Mar-09 2:43 
GeneralRe: UIcontrol.Dispatcher.CheckAccess() Pin
Pete O'Hanlon19-Mar-09 3:33
mvePete O'Hanlon19-Mar-09 3:33 
QuestionAdding Window in TabItem Pin
jear7719-Mar-09 1:44
jear7719-Mar-09 1:44 
AnswerRe: Adding Window in TabItem Pin
ABitSmart19-Mar-09 2:31
ABitSmart19-Mar-09 2:31 
QuestionReset Storyboard on complete. Pin
emptythetill19-Mar-09 0:38
emptythetill19-Mar-09 0:38 
AnswerRe: Reset Storyboard on complete. Pin
sivaddrahcir23-Mar-09 13:39
sivaddrahcir23-Mar-09 13:39 
QuestionExporting Grid to PDF Pin
sumit703418-Mar-09 20:50
sumit703418-Mar-09 20:50 
AnswerRe: Exporting Grid to PDF Pin
Mark Salsbery19-Mar-09 7:04
Mark Salsbery19-Mar-09 7:04 
AnswerRe: Exporting Grid to PDF Pin
Braulio Dez1-Apr-09 5:59
Braulio Dez1-Apr-09 5:59 
QuestionTreeview Pin
Ch.Gayatri Subudhi18-Mar-09 18:32
Ch.Gayatri Subudhi18-Mar-09 18:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.