Skip to main content

Microsoft Silverlight

Silverlight on gadgetRSS Feed

(0)

SteveWong
SteveWong

Contributor

Contributor

6323 points

1,281 Posts

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

Client App Dev

robhouweling
robhouwe...

Contributor

Contributor

3158 points

540 Posts

Silverlight MVP

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)

Cheers!
Rob Houweling



My blog

SteveWong
SteveWong

Contributor

Contributor

6323 points

1,281 Posts

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

Client App Dev

robhouweling
robhouwe...

Contributor

Contributor

3158 points

540 Posts

Silverlight MVP

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)

Cheers!
Rob Houweling



My blog

SteveWong
SteveWong

Contributor

Contributor

6323 points

1,281 Posts

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

Client App Dev

ivanatilca
ivanatilca

Member

Member

113 points

110 Posts

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

virorum
virorum

Member

Member

29 points

21 Posts

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

SteveWong
SteveWong

Contributor

Contributor

6323 points

1,281 Posts

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

Client App Dev

rajesh shirpuram
rajesh s...

Contributor

Contributor

2314 points

505 Posts

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

virorum
virorum

Member

Member

29 points

21 Posts

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
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities