Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8848297
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T12:23:32+00:00 2026-06-14T12:23:32+00:00

This is from a newbie in Silverlight. I’ve a Silverlight app hosted in an

  • 0

This is from a newbie in Silverlight. I’ve a Silverlight app hosted in an ASP.NET application. What I need is to get the virtual directory path in the code behind of a XAML file. In ASP.NET, HttpRuntime.AppDomainAppVirtualPath would have done the needful. How can I achieve the same objective in SL?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T12:23:34+00:00Added an answer on June 14, 2026 at 12:23 pm

    Couldn’t quite get the virtual path, but found an acceptable workaround. Application.Current.Host.Source will always give the source of my .xap file within the ClientBin folder. This Uri will also have the virtual directory in it, if there is one. So I obtained a substring from it, by chopping off the portion starting from the ClientBin part and appended the relative Uri of the required resource to the substring.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am newbie from asp.net i wanted to asked how the data grid view
I'm a newbie with WinDbg and got this dump from the WER ReportQueue folder
I got this from php.net website. This is related to the problem I am
Newbie ajax question from this example : How is xmlhttp.responseText assigned before xmlhttp.open() and
I'm a newbie. In my textbook there is this example: from django.contrib import admin
This should be pretty straight forward but I can't seem to get my newbie
Following up from this question: designing application classes What is wrong (from a design
I am complete newbie to Silverlight and the WCF platform. I want to get
I'm completely newbie in PHP. I have tried example code from this site .
I took this code from Facebook's documentation to get me started in learning how

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.