Collection View

6 views
Skip to first unread message

estie

unread,
May 9, 2011, 3:31:36 AM5/9/11
to UI Binders
How would I use collection View on my custom control?
I 'm building custom control that has a list on it, the ItemSource is
bound to a dependency property on the custom control
Now I want to change and to use Collection view as Item souorce,
where would I define it and how should I use it? in the Xaml, as
Dependency property?

Tanks for any help.

Steve Ruben

unread,
May 9, 2011, 11:11:09 AM5/9/11
to ui-bi...@googlegroups.com
I've attached some sample code that I think should help you with your problem. This is a silverlight  4 application with a user control hosted inside the main page. The pain page contains 1 button that will swap the data displayed in the user control. Please let me know if you have any questions.

Follow me on twitter: http://www.twitter.com/csharpyoudull
SampleCode.zip

Steve Ruben

unread,
May 9, 2011, 11:53:37 AM5/9/11
to ui-bi...@googlegroups.com
Updated this code the dependency property was not required in the user control so it was removed.
SampleCode.zip
Reply all
Reply to author
Forward
0 new messages