Silverlight on gadget
Last post 07-26-2008 8:26 AM by virorum. 9 replies.
Sort Posts:
05-17-2008 8:42 AM
Silverlight on gadget

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!

Regards,
SteveWong (HongKong)
Please mark post as answer if they help you


The significant problems we face cannot be solved by the same level of thinking that created them

SteveWong

Loading...
Joined on 03-27-2008
Hong Kong
Posts 969
05-17-2008 10:06 AM
Re: Silverlight on gadget

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.aspx
Part 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. Thank you!)

Kind Regards,
Rob Houweling

Visit my blog at http://web-snippets.blogspot.com

robhouweling

Loading...
Joined on 03-01-2008
Ede
Posts 249
05-17-2008 12:02 PM
Re: Silverlight on gadget

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.aspx
Part 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.....

Regards,
SteveWong (HongKong)
Please mark post as answer if they help you


The significant problems we face cannot be solved by the same level of thinking that created them

SteveWong

Loading...
Joined on 03-27-2008
Hong Kong
Posts 969
05-18-2008 3:52 AM
Re: Silverlight on gadget

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

 

(If this has answered your question, please click on "mark as answer" on this post. Thank you!)

Kind Regards,
Rob Houweling

Visit my blog at http://web-snippets.blogspot.com

robhouweling

Loading...
Joined on 03-01-2008
Ede
Posts 249
05-18-2008 7:40 PM
Re: Silverlight on gadget

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.

Regards,
SteveWong (HongKong)
Please mark post as answer if they help you


The significant problems we face cannot be solved by the same level of thinking that created them

SteveWong

Loading...
Joined on 03-27-2008
Hong Kong
Posts 969
06-22-2008 4:08 PM
Re: Silverlight on gadget

Anyone knows about gadget on silv 2 beta 2, i downloaded silv 1 gadgets and asks me to install plug in 1 Sad

Ivana A. Tilca | Microsoft Student Partner | Channel 8 editor | Microsoft

http://ivanatilca.com.ar

ivanatilca

Loading...
Joined on 03-24-2008
Argentina
Posts 58
07-25-2008 6:46 PM
Re: Silverlight on gadget

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? :)

Virorurm Media

virorum

Loading...
Joined on 07-08-2008
United Kingdom
Posts 21
07-26-2008 1:53 AM
Re: Re: Silverlight on gadget

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

Regards,
SteveWong (HongKong)
Please mark post as answer if they help you


The significant problems we face cannot be solved by the same level of thinking that created them

SteveWong

Loading...
Joined on 03-27-2008
Hong Kong
Posts 969
07-26-2008 4:32 AM
Re: Re: Silverlight on gadget

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...

 

Thanks
Rajesh Shirpuram

(If this has answered your question, please click on "mark as answer" on this post. Thank you!)

rajesh shirpuram

Loading...
Joined on 08-13-2007
Pune,India
Posts 433
07-26-2008 8:26 AM
Re: Re: Silverlight on gadget

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!! Crying

Virorurm Media

virorum

Loading...
Joined on 07-08-2008
United Kingdom
Posts 21
Page view counter