Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Premium
Feed
Dashboard
Wallet
Achievements
Growth
Network
SharpGPT
Rewards
Register
Login
Convert Path to Uri in WPF and C#
WhatsApp
XAML Designer
May 28 2012
28
k
0
Resource
0
I keep getting this question from time to time.
It is very easy to convert a path or folder to a Uri in WPF and C#. Here is the code snippet.
Uri cookieUri1 = new Uri(@"C:\Junk\SimpleMC");