Kelly Robins
Kelly Robins

Reputation: 7313

Getting the URI of a resource located server side in Silverlight

I'm very new to silverlight and I'm trying to play a video located in the web project associated with my silverlight application.

What is the best way to get the URI of videos located on the server without hard coding the web address?

Upvotes: 1

Views: 551

Answers (2)

VoodooChild
VoodooChild

Reputation: 9784

You can get to the "root" path in silverlight by doing:

App.Current.Host.Source

then add the remainder to this address to get the file path of the video you want to play. Hope that helps

Upvotes: 1

Darin Dimitrov
Darin Dimitrov

Reputation: 1039298

You could pass the URL as parameter from the server to the client.

Upvotes: 2

Related Questions