Search

Add ObservableCollection to Collection type list in Service Reference Settings by jemiller0

Active

2
Sign in to vote
0
Sign in to vote
Sign in
to vote
Type: Suggestion
ID: 294448
Opened: 8/21/2007 2:10:25 PM
Access Restriction: Public
0
Workaround(s)
Visual Studio 2008 allows you to select the type of collection that is used for arrays for a web service's proxy objects. To do this you righ-click on the web reference and select "Configure Service Reference...." This opens the "Service Reference Settings" window. The "Collection type" combo box allows you to select the type of collection that you want to use. This is a GREAT feature. I love it. However, it's missing one collection type that is extremely useful in WPF apps which is used for data binding. Namely, it's missing "System.Collections.ObjectModel.ObservableCollection." Would it be possible to add this collection type to the list as well?

The following URL explains a workaround, but, it would be much nicer if ObservableCollection was simply in the drop down list.
http://www.infinitec.de/articles/development/default.aspx
Details (expand)
Product Language
English

Version

Visual Studio Code Name "Orcas" (Beta 2)
Operating System
Windows XP Professional
Operating System Language
English
Problem Statement
ObservableCollection is missing from the "Collection type" drop down list.
Proposed Solution
Add ObservableCollection to the "Collection type" drop down list.
TAP Code (if applicable)
 
      You can indicate your satisfaction with how Microsoft handled this issue by completing this quick 3 question survey. [Details]

 

File Attachments
0 attachments
Sign in to post a comment.
Posted by Microsoft on 8/23/2007 at 10:40 AM
Dear Jemiller (?--sorry)

thank you for helping us make VS better. We are aware of this issue. Unfortunately we won't be able to add ObservableCollection as a choice in the Add/Configure Service Reference dialog, but we will try to get it done in the first VS 2008 service pack. In the meantime you can work around the issue by modifying .svcmap file (turn on "show all files in Solution Explorer, you will find the svcmap file under the service reference icon). That is, you can add a new CollectionMapping to System.Collections.ObjectModel.ObservableCollection`1 there. This is not discoverable at all and we definitively want to make it better.
Posted by Microsoft on 8/23/2007 at 10:40 AM
(forgot the signature)

Karol Zadora, Visual Studio Development Team