I have ResourceDictionary in my application. I need to add some items from c# code to this collection:
<UserControl.Resources>
<ResourceDictionary>
</ResourceDictionary>
</UserControl.Resources>
As key for resources i want to use path to file.
For example:
c:\some folder\@#file.txt
What is the best wey to convert this file path to valid ResourceDictionary Key?
Remove back slash and encode special characters.