Click here to Skip to main content
15,892,697 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: MVVM Pin
Abhinav S7-Oct-10 20:52
Abhinav S7-Oct-10 20:52 
QuestionSilverlight MVVM and combo boxes Pin
Mycroft Holmes6-Oct-10 23:17
professionalMycroft Holmes6-Oct-10 23:17 
AnswerRe: Silverlight MVVM and combo boxes Pin
Pete O'Hanlon6-Oct-10 23:34
mvePete O'Hanlon6-Oct-10 23:34 
GeneralRe: Silverlight MVVM and combo boxes Pin
Mycroft Holmes7-Oct-10 0:36
professionalMycroft Holmes7-Oct-10 0:36 
GeneralRe: Silverlight MVVM and combo boxes Pin
Pete O'Hanlon7-Oct-10 6:16
mvePete O'Hanlon7-Oct-10 6:16 
GeneralRe: Silverlight MVVM and combo boxes Pin
Mycroft Holmes7-Oct-10 19:49
professionalMycroft Holmes7-Oct-10 19:49 
GeneralRe: Silverlight MVVM and combo boxes Pin
Mycroft Holmes7-Oct-10 17:12
professionalMycroft Holmes7-Oct-10 17:12 
AnswerRe: Silverlight MVVM and combo boxes - KLUDGE Pin
Mycroft Holmes7-Oct-10 21:05
professionalMycroft Holmes7-Oct-10 21:05 
It turns out this is a well known problem it is just that I am coming into SL late.

When changing the underlying datasource the intemsource and the selecteditem are reset. After chasing around for some time I settled on this solution [^] This means each combo will need to be manually bound in the code behind.

Except it needs a bit more!
In my viewmodel I have a SetSelected(int iID) method that will set the current selected item in a List<> based in the id. This is then used to set the combobox selected item.

Calling the BindCombo when the visibility changes seems to be the best event to use
Never underestimate the power of human stupidity
RAH

AnswerRe: Silverlight MVVM and combo boxes Pin
Mohammad Barzanooni30-Nov-13 2:53
Mohammad Barzanooni30-Nov-13 2:53 
GeneralRe: Silverlight MVVM and combo boxes Pin
Mycroft Holmes30-Nov-13 12:29
professionalMycroft Holmes30-Nov-13 12:29 
QuestionHow to change border or userControl z-order in runtime ? Pin
Yanshof5-Oct-10 3:21
Yanshof5-Oct-10 3:21 
AnswerRe: How to change border or userControl z-order in runtime ? Pin
Ian Shlasko5-Oct-10 3:27
Ian Shlasko5-Oct-10 3:27 
GeneralRe: How to change border or userControl z-order in run-time ? Pin
Yanshof5-Oct-10 5:03
Yanshof5-Oct-10 5:03 
GeneralRe: How to change border or userControl z-order in run-time ? Pin
Ian Shlasko5-Oct-10 6:25
Ian Shlasko5-Oct-10 6:25 
AnswerRe: How to change border or userControl z-order in runtime ? Pin
Abhinav S5-Oct-10 6:32
Abhinav S5-Oct-10 6:32 
GeneralRe: How to change border or userControl z-order in runtime ? Pin
Yanshof5-Oct-10 7:18
Yanshof5-Oct-10 7:18 
GeneralRe: How to change border or userControl z-order in runtime ? Pin
Abhinav S5-Oct-10 7:27
Abhinav S5-Oct-10 7:27 
GeneralRe: How to change border or userControl z-order in runtime ? Pin
Yanshof5-Oct-10 17:54
Yanshof5-Oct-10 17:54 
GeneralRe: How to change border or userControl z-order in runtime ? Pin
Abhinav S5-Oct-10 18:18
Abhinav S5-Oct-10 18:18 
GeneralRe: How to change border or userControl z-order in runtime ? Pin
Ian Shlasko6-Oct-10 2:53
Ian Shlasko6-Oct-10 2:53 
GeneralRe: How to change border or userControl z-order in runtime ? Pin
Yanshof6-Oct-10 2:57
Yanshof6-Oct-10 2:57 
GeneralRe: How to change border or userControl z-order in runtime ? Pin
Ian Shlasko6-Oct-10 3:15
Ian Shlasko6-Oct-10 3:15 
Questioncrashing UI in silverlight application at development time in VS2008 Pin
sumit70344-Oct-10 21:21
sumit70344-Oct-10 21:21 
AnswerRe: crashing UI in silverlight application at development time in VS2008 Pin
Pete O'Hanlon4-Oct-10 21:37
mvePete O'Hanlon4-Oct-10 21:37 
GeneralRe: crashing UI in silverlight application at development time in VS2008 Pin
#realJSOP5-Oct-10 9:00
mve#realJSOP5-Oct-10 9:00 

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.