Reputation: 10546
I started reading the Pro Business Applications with Silverlight 4 and I'm having the following problem here with my visual studio 2010
I can't find the data sources tab page as mentioned here:
When you open the Data Sources window in Visual Studio, you will find that a data source has already been created for each domain context created by RIA Services in the Silverlight project, with the entities that they expose beneath them (as shown in Figure 6-2). Dragging and dropping one of these onto your design surface will create both a DomainDataSource control and a bound control to display the data.
I know that the Data Sources window and Data menu are intentionally disabled in Websites and Web Application Projects but my project is a Silverlight business application.
Can someone tell where i can find this window or what should i do to create the DomainDataSource control and the bound control?
Thanks!
Upvotes: 7
Views: 24119
Reputation: 1222
You can find this toolbar option in View -> Other Windows -> Data Sources or use
Shift + Alt + D
Upvotes: 0
Reputation: 1641
You may need to build the project that contains your objects before the objects appear in the tree view.
Pablo
Upvotes: 0
Reputation: 4331
OK, i got a workaround. For some reason, it only shows up if you do a Silverlight project. So I started a blank solution, added a silverlight project. Bingo - there is the Data Source window. Now, add whatever project you really need.
Upvotes: 0
Reputation: 16899
If you have MainWindow.xaml open, the DataSources tab is normally right next to the Toolbox tab.
If it does not appear there, go to View -> Toolbars, and turn on the Data Design toolbar. Click the Show Data Sources button.
Or just use Shift + Alt + D
Upvotes: 8
Reputation: 19100
When I create an empty project, I am able to access Data Sources as follows:
Upvotes: 0