Click here to Skip to main content
15,894,405 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: WPF Combobox not navigating to items on key press Pin
ABitSmart24-Jun-09 20:25
ABitSmart24-Jun-09 20:25 
GeneralRe: WPF Combobox not navigating to items on key press Pin
S Rajput24-Jun-09 20:29
S Rajput24-Jun-09 20:29 
GeneralRe: WPF Combobox not navigating to items on key press Pin
Christian Graus24-Jun-09 21:08
protectorChristian Graus24-Jun-09 21:08 
GeneralRe: WPF Combobox not navigating to items on key press Pin
S Rajput24-Jun-09 21:22
S Rajput24-Jun-09 21:22 
GeneralRe: WPF Combobox not navigating to items on key press Pin
ABitSmart24-Jun-09 21:37
ABitSmart24-Jun-09 21:37 
GeneralRe: WPF Combobox not navigating to items on key press Pin
ABitSmart24-Jun-09 21:34
ABitSmart24-Jun-09 21:34 
GeneralRe: WPF Combobox not navigating to items on key press Pin
S Rajput28-Jun-09 18:45
S Rajput28-Jun-09 18:45 
QuestionData binding from a List to a Grid Pin
fjparisIII24-Jun-09 15:39
fjparisIII24-Jun-09 15:39 
I have so many questions I don't know where to begin. I'll just throw out one of my questions. Suppose I have multiple modeless instances of the same window class active at the same time. Say there's a Grid called metadataGrid in the window, and I want different data values in each of the different instances of the same window class. How do I express the data binding in XAML?

Let's say I have a List<PhotoMetadata> called PhotoMetadataList that contains the data I want to display in the grid. PhotoMetadata is derived from INotifyPropertyChanged and so metadataGrid should get notified every time I make a change to a property in PhotoMetadata.

Each window instance has its own instance of List<PhotoMetadata>, say for a different photograph. Let's say the name of the window is PhotoInformationWindow. I started with the following XAML in my Window.Resources (irrelevant details omitted):

x:Key="metadata"<br />
Source="{Binding Mode=OneWay, RelativeSource={RelativeSource AncestorType=local:PhotoInformationWindow}, <br />
                              Path=PhotoMetadataList}"


Then in my metadataGrid XAML, I have this line:

ItemsSource="{Binding Source={StaticResource metadata}}"

But metadataGrid just ignores any data I write to PhotoMetadataList, even when there's only a single instance of the window. I should think this would work for not just a single instance of PhotoInformationWindow, but for multiple instances. I hope someone can straighten out my thinking and point out some obvious errors I'm making.
AnswerRe: Data binding from a List to a Grid Pin
Christian Graus24-Jun-09 16:24
protectorChristian Graus24-Jun-09 16:24 
GeneralRe: Data binding from a List to a Grid Pin
fjparisIII25-Jun-09 3:34
fjparisIII25-Jun-09 3:34 
AnswerRe: Data binding from a List to a Grid Pin
ABitSmart24-Jun-09 17:09
ABitSmart24-Jun-09 17:09 
GeneralRe: Data binding from a List to a Grid Pin
fjparisIII25-Jun-09 3:50
fjparisIII25-Jun-09 3:50 
GeneralRe: Data binding from a List to a Grid Pin
ABitSmart25-Jun-09 5:48
ABitSmart25-Jun-09 5:48 
GeneralRe: Data binding from a List to a Grid Pin
fjparisIII25-Jun-09 8:22
fjparisIII25-Jun-09 8:22 
GeneralRe: Data binding from a List to a Grid Pin
fjparisIII25-Jun-09 5:41
fjparisIII25-Jun-09 5:41 
GeneralRe: Data binding from a List to a Grid Pin
ABitSmart25-Jun-09 5:45
ABitSmart25-Jun-09 5:45 
GeneralRe: Data binding from a List to a Grid Pin
fjparisIII25-Jun-09 8:26
fjparisIII25-Jun-09 8:26 
AnswerRe: Data binding from a List to a Grid Pin
mittalamit24-Jun-09 20:18
mittalamit24-Jun-09 20:18 
GeneralRe: Data binding from a List to a Grid (unfortunately, it did not work) [modified] Pin
fjparisIII25-Jun-09 4:56
fjparisIII25-Jun-09 4:56 
AnswerRe: Data binding from a List to a Grid Pin
Mark Salsbery25-Jun-09 6:58
Mark Salsbery25-Jun-09 6:58 
GeneralRe: Data binding from a List to a Grid Pin
fjparisIII25-Jun-09 7:31
fjparisIII25-Jun-09 7:31 
GeneralRe: Data binding from a List to a Grid Pin
Mark Salsbery25-Jun-09 7:48
Mark Salsbery25-Jun-09 7:48 
GeneralRe: Data binding from a List to a Grid Pin
fjparisIII25-Jun-09 8:30
fjparisIII25-Jun-09 8:30 
GeneralRe: Data binding from a List to a Grid Pin
fjparisIII25-Jun-09 7:39
fjparisIII25-Jun-09 7:39 
GeneralRe: Data binding from a List to a Grid Pin
Pete O'Hanlon25-Jun-09 9:07
mvePete O'Hanlon25-Jun-09 9:07 

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.