Click here to Skip to main content
15,902,873 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: WPF ListView/Items Control - Another problem Pin
Insincere Dave31-Jan-09 4:08
Insincere Dave31-Jan-09 4:08 
GeneralRe: WPF ListView/Items Control - Another problem Pin
snblackout31-Jan-09 7:56
snblackout31-Jan-09 7:56 
GeneralRe: WPF ListView/Items Control - Another problem [modified] Pin
Insincere Dave31-Jan-09 10:30
Insincere Dave31-Jan-09 10:30 
GeneralRe: WPF ListView/Items Control - Another problem Pin
snblackout2-Feb-09 8:59
snblackout2-Feb-09 8:59 
QuestionWindows1 Elements Pin
me0830-Jan-09 12:26
me0830-Jan-09 12:26 
AnswerRe: Windows1 Elements Pin
BlitzPackage2-Feb-09 11:30
BlitzPackage2-Feb-09 11:30 
GeneralRe: Windows1 Elements Pin
me082-Feb-09 11:53
me082-Feb-09 11:53 
AnswerRe: Windows1 Elements Pin
Pete O'Hanlon2-Feb-09 11:42
mvePete O'Hanlon2-Feb-09 11:42 
When you extract your data, put it into a well defined class. For instance, if you were reading in an animals structure, you might have a class that looks like this:
public class Animal
{
  public string Name { get; set; }
}
Create an observable collection that wraps the animals and populate it with your data reader. [Hint - you might want to use my RangeObservableCollection[^] class in place of the ObservableCollection because it's better suited for bulk loading information into without firing off the notification events]. Then, bind this to your DataContext and use WPF databinding to bind the combobox to this. I know this seems to be a lot, but it's not as bad as it sounds and there are plenty of examples on this.

"WPF has many lovers. It's a veritable porn star!" - Josh Smith

My blog | My articles | MoXAML PowerToys



GeneralRe: Windows1 Elements Pin
BlitzPackage2-Feb-09 11:45
BlitzPackage2-Feb-09 11:45 
GeneralRe: Windows1 Elements Pin
Pete O'Hanlon2-Feb-09 11:46
mvePete O'Hanlon2-Feb-09 11:46 
QuestionRe: Windows1 Elements Pin
me084-Feb-09 5:04
me084-Feb-09 5:04 
AnswerRe: Windows1 Elements Pin
Pete O'Hanlon4-Feb-09 5:20
mvePete O'Hanlon4-Feb-09 5:20 
QuestionDlls Issue Pin
Tauseef A29-Jan-09 23:12
Tauseef A29-Jan-09 23:12 
AnswerRe: Dlls Issue Pin
Michael Sync31-Jan-09 4:56
Michael Sync31-Jan-09 4:56 
QuestionXaml on the Web Pin
Jammer29-Jan-09 23:07
Jammer29-Jan-09 23:07 
AnswerRe: Xaml on the Web Pin
Pete O'Hanlon30-Jan-09 0:40
mvePete O'Hanlon30-Jan-09 0:40 
GeneralRe: Xaml on the Web Pin
Jammer30-Jan-09 0:54
Jammer30-Jan-09 0:54 
GeneralRe: Xaml on the Web Pin
Pete O'Hanlon30-Jan-09 1:31
mvePete O'Hanlon30-Jan-09 1:31 
GeneralRe: Xaml on the Web Pin
Jammer31-Jan-09 22:39
Jammer31-Jan-09 22:39 
GeneralRe: Xaml on the Web Pin
Pete O'Hanlon1-Feb-09 8:28
mvePete O'Hanlon1-Feb-09 8:28 
GeneralRe: Xaml on the Web Pin
Jammer1-Feb-09 10:38
Jammer1-Feb-09 10:38 
AnswerRe: Xaml on the Web Pin
Mark Salsbery2-Feb-09 6:09
Mark Salsbery2-Feb-09 6:09 
GeneralRe: Xaml on the Web Pin
Jammer2-Feb-09 6:36
Jammer2-Feb-09 6:36 
GeneralRe: Xaml on the Web Pin
Mark Salsbery2-Feb-09 6:45
Mark Salsbery2-Feb-09 6:45 
GeneralRe: Xaml on the Web Pin
Jammer2-Feb-09 7:11
Jammer2-Feb-09 7:11 

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.