(X) Hide this Join our next live webcast on December 15th, 10 am PDT - Building a Silverlight 4 application end-to-end. Presenter: Gill Cleeren
Check the webinar agenda | Register for the webinar
Skip Navigation LinksHome / News / View News

How to get an Image’s Source File Name

+ Add to SilverlightShow Favorites
0 comments   /   posted by Silverlight Show on Mar 02, 2009
(0 votes)
Tags: Image , Source , Silverlight , C# , Mike Snow

Here is the new tip of the day from the Mike Snow’s blog and this time it is about getting an image’s source file name.

Once you have an image loaded how do you go back and get the original file name for the source file? This can be accomplished through the Uri property of the images Source. However, you must first typecast the images Source to be a BitmapImage. The Uri has a property called OriginalString that returns the full relative path to the image file.

Share


Comments

Comments RSS RSS
No comments

Add Comment

 
 

   
  
  
   
Please add 5 and 7 and type the answer here: