![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
| |
| | #1 (permalink) |
| | 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) |
| | 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 | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Search doesn't show the filepath | General Discussion | |||
| filepath/permissions issue? | Vista Games | |||
| Get the longest filepath ? | PowerShell | |||
| Bug: Cmdlets using -FilePath should use -Path | PowerShell | |||