SL2-Controls without Application on the Client
Last post 05-09-2008 10:50 AM by Basti8. 5 replies.
Sort Posts:
04-23-2008 5:13 AM
SL2-Controls without Application on the Client

Hi.

I just want to get something clear for me. Is it right, that the new Silverlight 2-Controls, like Buttons for example, can't be understood directly by the Silverlight Browser Plugin without the System.Windows.Controls.dll? Would that mean, that this dll has to be send to the client in a xap-package? And would that mean, that you need managed code to tell the plugin to use the dll?

If thats right, the xaml-code can't be shown directly in the Browser. It needs an Application (the managed code for the Silverlight-Control) to do that.

There are four questions I ask myself:

1. Most important on: Am I right so far?

2. Why doesn't Microsoft include the recently used controls, like buttons, to the range of understanding of the Silverlight-Browser-PLugin? Wouldn't that allow you to write inline-xaml with these usefull controls?

3. Why isn't the Windows.Controls.dll in the Plugin? I can't see any reasons for making the user downloading the dll again and again within the xap-package..

4. Are there any changes planned in the final release of Silverlight 2?

Basti8

Joined on 03-14-2008
Posts 38
04-23-2008 8:02 AM
Re: SL2-Controls without Application on the Client

Most of the new controls are currently external I think primarily so the teams could work on different development tracks. It seems likely that some or all of them will be rolled into the runtime at some point, so yes, there is hope :)

Pete

If your question was answered, please mark the response as the answer.

Silverlight.net Moderator
MVP: Visual Developer - Client Application Development
POKE 53280,0 - My Blog

Psychlist1972

Joined on 10-12-2004
Maryland, USA
Posts 717
04-23-2008 11:03 AM
Re: SL2-Controls without Application on the Client

My understanding is that silverlight controls that shipped with beta (controls in system.Window.Controls.dll) are in the silverlight run time which user only download once.  The Xap file for each application only contains user build DLL for that application. If you take a look at the ClientBin of your silverlight project, the files under there get packed into the Xap file.

 

 

Software Engineer
Aprimo, Inc

Please remember to mark the replies as answers if they answered your question

sladapter

Joined on 03-05-2008
Indiana, US
Posts 404
04-23-2008 11:18 AM
Marked as Answer
Re: SL2-Controls without Application on the Client

sladapter:

My understanding is that silverlight controls that shipped with beta (controls in system.Window.Controls.dll) are in the silverlight run time which user only download once.

This is not true for Beta 1

Pete

If your question was answered, please mark the response as the answer.

Silverlight.net Moderator
MVP: Visual Developer - Client Application Development
POKE 53280,0 - My Blog

Psychlist1972

Joined on 10-12-2004
Maryland, USA
Posts 717
04-23-2008 1:19 PM
Re: SL2-Controls without Application on the Client

OK, now I took a look at my ClientBin directory I did see all the System.Windows.Controls.dll, System.Windows.Controls.Data.dll, System.Windows.Controls.Extended.dll etc. there. So they are packaged in the Xap not in the runtime.

 

 

Software Engineer
Aprimo, Inc

Please remember to mark the replies as answers if they answered your question

sladapter

Joined on 03-05-2008
Indiana, US
Posts 404
05-09-2008 10:50 AM
Re: SL2-Controls without Application on the Client

Thank you very much so far. That helped a lot to get things clearer.

There's still one little question: Is it possible to work with styles (<Canvas.Style>) when using inline xaml?

I thing it's an Element of Silverlight 2.0, and I'm not sure, if they made it available outside of xaps like TextBoxes or if they put it in an assembly to be transferred inside the xap like Buttons.

Basti8

Joined on 03-14-2008
Posts 38