我正在尝试将 Uri 对象的 uriString 设置为在 GifBitmapDecoder 中使用的相对路径。
在运行时我收到以下错误:
Invalid URI: The format of the URI could not be determined.
我的相对路径遵循以下格式:
/TestApplication;component/Images/Busy.gif
如果我使用图像的绝对路径,一切正常!
任何帮助,将不胜感激!
我正在尝试将 Uri 对象的 uriString 设置为在 GifBitmapDecoder 中使用的相对路径。
在运行时我收到以下错误:
Invalid URI: The format of the URI could not be determined.
我的相对路径遵循以下格式:
/TestApplication;component/Images/Busy.gif
如果我使用图像的绝对路径,一切正常!
任何帮助,将不胜感激!
在以下位置找到了答案:
http://msdn.microsoft.com/en-us/library/aa970069.aspx
我缺少以下内容:pack://application:,,,在我的相对路径前面。