![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | relative filepath for BitmapImage UriSource in Feb CTP How do do I specify a relative filepath for an Image suing feb CTP 96 ? I copied myimage.jpg into the same directory as the exe (bin/Debug and bin/Release) and I tried to use the pack syntax as the docs suggest: <Image> <Image.Source> <BitmapImage UriSource="pack://application:,,/myimage.jpg" /> </Image.Source> </Image> also I tried UriSource="myimage.jpg" In both cases I get a System.IO.Exception, saysing: "cannot locate ressource myimage.jpg" what am I doing wrong? |
My System Specs![]() |
| | #2 (permalink) |
| Guest | Re: relative filepath for BitmapImage UriSource in Feb CTP For the edification of others curious about the answer here, I've responded to something similar in the WPF Forum: http://forums.microsoft.com/MSDN/Sho...97063&SiteID=1 -- Ashish Shetty [MSFT] Program Manager, Windows Presentation Foundation (Avalon) Blog: http://nerddawg.blogspot.com --- This posting is provided "AS IS" with no warranties, and confers no rights. "bonk" <schwertfischtrombose@gmx.de> wrote in message news:%23tVcZl2RGHA.2088@TK2MSFTNGP14.phx.gbl... > > How do do I specify a relative filepath for an Image suing feb CTP 96 ? > I copied myimage.jpg into the same directory as the exe (bin/Debug and > bin/Release) > and I tried to use the pack syntax as the docs suggest: > <Image> > <Image.Source> > <BitmapImage UriSource="pack://application:,,/myimage.jpg" /> > </Image.Source> > </Image> > > also I tried > UriSource="myimage.jpg" > In both cases I get a System.IO.Exception, saysing: "cannot locate > ressource myimage.jpg" > what am I doing wrong? > |
My System Specs![]() |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| filepath/permissions issue? | Tom | Vista Games | 3 | 08-20-2007 04:48 PM |
| Creating an BitmapImage from an ImageBrush? | scott.browse@gmail.com | Avalon | 0 | 08-13-2007 05:46 PM |
| Get the longest filepath ? | KL | PowerShell | 19 | 11-26-2006 01:58 PM |
| Bug: Cmdlets using -FilePath should use -Path | Alex K. Angelopoulos [MVP] | PowerShell | 2 | 06-20-2006 09:33 AM |
| BitmapImage and Bitmap (second shot)) | Rhinpoche@star-sw.com | Avalon | 2 | 05-18-2006 10:55 AM |