Flipper
Flipper

Reputation: 1107

Windows Phone - Binding listbox to static singleton Repository of ObservableCollection of WCF service items?

Is that possible? I know with ViewModel pattern, but I have Repository Pattern implemented as Singleton (I have private constructor) and inside of repository I have ObservableCollection of some item which a get from a WCF service?

My question is, how to bind that ObservableCollection to a listbox?

Thank you very much :)

Upvotes: 0

Views: 169

Answers (1)

gleng
gleng

Reputation: 6304

Am I missing something here? Just bind it to the collection:

<ListBox ItemSource={Binding YourObservableCollection} />

Upvotes: 1

Related Questions