Skip to main content
Home Forums Silverlight Programming Programming with .NET - General Silverlight on gadget
9 replies. Latest Post by virorum on July 26, 2008.
(0)
SteveWong
Contributor
6343 points
1,281 Posts
05-17-2008 8:42 AM |
I have read so many posts on creating gadget in silverlight.
But many samples include a file called .xbap or just include a xaml file.
I have a project which is the silverlight 2 project has to call the Webservice to get information. How can i do that on a gadget.
If you still don't understand what i am talking.
Just to imagine you have to design a gadget having the login function, which calls the web service for valid user.
Thank you!
robhouwe...
3158 points
540 Posts
05-17-2008 10:06 AM |
Adam Kinney did three blogposts on creating a gadget with Silverlight. He also uses a webservice to retrieve data:
Part 1: http://adamkinney.com/blog/325/default.aspxPart 2: http://adamkinney.com/blog/326/default.aspx (this one describes howto retrieve the data)Part 3: http://adamkinney.com/blog/327/default.aspx
Hope this helps!
(If this has answered your question, please click on mark as answer on this post)Cheers!Rob Houweling
05-17-2008 12:02 PM |
robhouweling: Adam Kinney did three blogposts on creating a gadget with Silverlight. He also uses a webservice to retrieve data: Part 1: http://adamkinney.com/blog/325/default.aspxPart 2: http://adamkinney.com/blog/326/default.aspx (this one describes howto retrieve the data)Part 3: http://adamkinney.com/blog/327/default.aspx Hope this helps!
Are you sure that is a sample of gadget?
It seems that is not.....
05-18-2008 3:52 AM |
Creating a gadget using Silverlight is not much different of creating one without Silverlight.
A few pointers are in this post:http://blog.benhall.me.uk/2007/05/vista-sidebar-gadget-using-silverlight.html
05-18-2008 7:40 PM |
robhouweling: Creating a gadget using Silverlight is not much different of creating one without Silverlight. A few pointers are in this post:http://blog.benhall.me.uk/2007/05/vista-sidebar-gadget-using-silverlight.html
Actually, I know how to create a gadget using Silverlight.
But, now I have to call the ASP.NET Web Service.
The article seems to be using .js as the code-behind that is not suitable for me.
ivanatilca
Member
113 points
110 Posts
06-22-2008 4:08 PM |
Anyone knows about gadget on silv 2 beta 2, i downloaded silv 1 gadgets and asks me to install plug in 1
virorum
29 points
21 Posts
07-25-2008 6:46 PM |
Hmm I'm having problems making a gadget using SL2 b2 as well.
I've hooked it up using javascript and the html page works fine if I open it just in IE and starts the Silverlight app, but as soon as I use it as a gadget the area in the sidebar just pops up the 'you must install Silverlight' link again.
Anyone actually had an SL 2 b2 gadget to work? :)
07-26-2008 1:53 AM |
Well, I think the gadget only support the one produced in Silverlight 1.1 or 1.0 with JS.
I have never seen anyone can do the trick in Silverlight 2 Beta 2
rajesh s...
2314 points
505 Posts
07-26-2008 4:32 AM |
i have developed few gadgets in silverlight 1.0 i.e. javascript as code behind.but i never thought of giving it a shot in sl2 b 2.
hmmm... i will try it and let you know guys...
07-26-2008 8:26 AM |
I've looked at this in a bit more detail today and the problem, using the Silverlight.js file as recommended concerns the Silverlight.isInstalled function and particularly the line: control = new ActiveXObject('AgControl.AgControl');
This line always throws an exception which in turn causes this function to indicate that Silverlight is not supported. If you try and 'fake' this function and always return 'true' (because we know we do have Silverlight 2b2 installed) the gadget still does not work and you get instead an area in the sidebar with the small red-cross icon.
The problem therefore appears to be the way in which the Sidebar limits the use of ActiveX controls for SL2b2...Argh!!