How to open a WPF Content Stream?

Posted by roshan on Stack Overflow See other posts from Stack Overflow or by roshan
Published on 2010-05-18T23:50:53Z Indexed on 2010/05/19 0:20 UTC
Read the original article Hit count: 576

Filed under:
|
|
|

Here's the code snippet

String str= ??????? // I want to assign c:/my/test.html to this string
Uri uri= new Uri (str);
Stream src = Application.GetContentStream(uri).Stream;

What's the correct way to do this? I'm getting "URI not relative" Exception thrown

© Stack Overflow or respective owner

Related posts about c#

Related posts about uri