Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > Silverlight 1.0 and 1.1
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Silverlight 1.0 and 1.1 Discuss Microsoft Silverlight. Please state whether your issue is 1.0 or 1.1 if that isn't clear from the post itself.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Silverlight 1.0 and 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old May 29th, 2008, 09:39 AM
Authorized User
Points: 192, Level: 3
Points: 192, Level: 3 Points: 192, Level: 3 Points: 192, Level: 3
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2006
Location: God's country , United Kingdom.
Posts: 41
Thanks: 1
Thanked 0 Times in 0 Posts
Default Silverlight controls

Hi all,
I need some advice on Silverlight User Controls in VS2008 please.

I've created a new silverlight application in VS2008 and added a new web project to the solution to run the silverlight controls in web pages.

It creates a default silverlight control which I've added some basic functionality to, i.e. a button and click event, etc, and it all works fine.

This all builds and runs perfectly well in the test aspx page from within the web project attached to the solution.

What I've noticed is that the silverlight application references the control within the app.xaml file on the application_startup method which I assume instantaites the control for the project.

My main question is, can you only run one silverlight control per silverlight project? And what if you want to reference another silverlight control within your web project?

I can add a new control within the silverlight project, but I cannot instantiate that control unless it's first in the app.xaml's application_startup method, which means I can only reference one silverlight control in the project.

Also, on the aspx page within the silverlight control, the "source" property just references the silverlight application as a whole in the clientbin.

So my main question is, do you create only one silverlight control per project and then build seperate projects for each different control you want? Because you can't seem to reference more than one control with a silverlight project.
Thanks in advance.
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with Silverlight 1.0SDk ilegend .NET Framework 3.5 0 October 4th, 2008 08:02 AM



All times are GMT -4. The time now is 04:11 PM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.