2010-10-01 100 views
0

我想将Uri对象的uriString设置为在GifBitmapDecoder中使用的相对路径。WPF GifBitmapDecoder Uri相对路径问题

在运行时我得到以下错误:

Invalid URI: The format of the URI could not be determined.

我的相对路径遵循以下格式:

/TestApplication;component/Images/Busy.gif

如果我使用绝对路径的形象,都完美的作品!

任何帮助,将不胜感激!

回答