Search code examples
c#windows-phone-7windows-phone-8special-charactersisolatedstorage

Special characters in IsolatedStorage name


I have the problem that if special characters (apart from full stops, colons, and dashes) are used in an IsolatedStorage file name my application crashes.

Is there any work-around for using these special character in the IsolatedStorage file name.

If not how can I remove all the special characters?

Side note: I'm taking the input for the file name from a TextBox.


Solution

  • I believe what you are looking for is this Input Scope. Just set the input scope to "Filename". There are ways to work around via code or xref table but more elegant (IMO) to just limit what can be entered.