Is Silverlight on Windows CE R3 not in sandbox? - silverlight

Silverlight on Windows CE 6 r3 is different I know, it's Silverlight 2 with a native C++ backend. But is this backend locked down in any way?
Can I access the local file system etc?
I'm currently building a proof-of-concept for a client, and I don't want to show them this lovely UI if I can't deliver on the functionality in the future.
I assume it is 'full trust' and has no restrictions?
Someone let me know as soon as possible please :)
Cheers,
Ash.

First - you can access the local file system from your Embedded Silverlight 2 application.
You can read the following blog post to see how to set a Silverlight application - link.
The blog has a couple of more posts that go through a basic Silverlight application.
By going through the code you will notice that in the C++ code you can do whatever you like. You can link your application against any native Dll and call whatever API you want.

Related

Create a .dll from a Silverlight Web Application

I programmed a Virtual Keyboard (On Screen Keyboard) as a Silverlight Web Application, now I want to use this Keyboard in an other Silverlight Application (call the Keyboard when clicking a Textbox). I thought I could create a .dll and use this in my other Application.
So is it possible to create a .dll File from a Silverlight Web Application?
Thank you for reading,
Knut Hansen
You simply need to convert it into a Silverlight Class Library. There are some things to look out for, but it isn't too hard.
It is one of the options when you create a new project in Visual Studio.
See Microsoft's documentation for more info:
http://msdn.microsoft.com/en-us/library/cc838164(v=vs.95).aspx#silverlight_class_library_project
also you can think of a web service, in this way your application can be used by anyone else, of course you can specify users of your app. I think web services are more recent and using them is more future-oriented, give it a go!

Silverlight Applications - How are they updated?

I'm new to Silverlight and am curious how a Silverlight application is updated from one version to the next. Is ClickOnce used to do this, or are there other, hopefully transparent simple and reliable, ways of doing it?
If using a standard Silverlight application (not out of browser), your regular HTTP rules are respected. So assuming caching is sensible, the latest version will be downloaded from the server automatically when the page is launched.
As for when it is running out of browser, Tim Heuer has a good blog post outlining it:
http://timheuer.com/blog/archive/2009/03/18/silverlight-3-offline-update-framework.aspx
Basically, a programmer can request for updates from the server and have the application update itself if necessary.

Is it possible in Silverlight to stream a live video screencast of the desktop?

I would like to develop a web conferencing system (or web classroom) as a graduation project using Silverlight similar to
iVocalize
which is a java applete .
I don't know if what is possible for a java applete to perform on the PC is also possible for Silverlight, or is SL more restricted.
There are two functionalities (which are related i guess) that iVocalize provides which i would also like to include in my SL application, which are:
A participant may broadcast a live video stream of the desktop to other participants so that they will be able to follow all activities performed on the computer.
A participant may take a snapshot of the desktop
If the previous functionalities are not possible in SL than do you think that WPF may be used instead?
Thank you vey much.
Actually, you can use Silverlight 4 Web cam features.
With Silverlight 4, you can develop full-trust Silverlight application that can capture the snapshot of user desktop.
Using Silverlight it is possible.. Have a look at this open source silverlight project. Its has desktop sharing as one of the module
http://silverlightvideochat.codeplex.com/

Silverlight and Full Trust Issue

We are planning to build a new integration component that can provide us access to user's machine installed apps from our web site.
The first word that came to me was ActiveX, but our expertise with the technology was not the best in the past.
Thinkink a lit bit more, the work Silverlight also came to my head, but the full trust thing was one of the few things I remembered reading about the technology..
The question is: is there a way that Silverlight (2, 3, 4, whatever) can run as a full trusted application from within the browser?
Links are appreciated.
Filipe
Unfortunately, no. Full trust is a feature of Silverlight 4, currently in beta, and is restricted to out-of-browser applications.
Additionally, full trust SL4 applications do not have unrestricted access to the system (particularly file system), though this may change before before release (if I have anything to do with it).
Edit: If you are considering ActiveX (which is Windows/IE only), you might want to have a look at WPF, since it can run full trust from the browser (if it's in a trusted zone).
No, like Richard said, this is not at all possible inside the browser, even in SL4. There is a sandbox, and you live in it. You can talk to web services, other Silverlight applications or the browser.
By talking to the browser, I mean you can talk to the DOM and the Javascript engine. We needed to launch a Windows application and communicate to it via Silverlight. We accomplished this by putting a small ActiveX control in the web page. It is responsible for launching the WinForms application and handling inter-process communication to it.
This method has many drawbacks: It can only work in IE, and it only works in Windows. You might also run into permissions issues. The ActiveX component needs to be installed along with the desktop application, or as an additional download. The deployment story there is pretty awful, if you ask me.
In our case, the analysts were willing to deal with the restrictions for the re-usability of an existing application, and we consider it to be an optional feature.
Does it have to be a web application? sounds like you want a desktop app. It can be easiliy distributed with one Click deployment. Will work on windows only but since you were considering ActiveX sounds like that's what you need.
Well - if you're hosting the silverlight control from an ASP.NET application - Believe you have access to
Request.ServerVariables["AUTH_USER"];
...and you can pass that on to your control as a parameter.
D

Out of Browser in Silverlight2

How can I build a Stand Alone Application with Silverlight 2.
1.I know that Silverlight 3 has the Out of Browser Functionality to build such Applications. But it is in beta and I cannot wait for it.
2. I also had a look at
Desklighter(http://www.blendables.com/labs/Desklighter/Default.aspx) which helps to build a executable from a xap file. But it needs .Net Framework to run, which beats the purpose.
just build a winform app and host iexplore ocx ,
point the ocx to an html page that contains the silverlight app.
there is a dotnet example on tamir khasons blog http://khason.net/blog/stand-alone-multiplatform-silverlight-application/
but it can be achived in any language
well! if you want to go for that particular purpose i agree with daniel's solution..
now regarding #James, yep it will defeat the purpose instead try developing the host in c++ then...

Resources