I found this answer for C#
C# getting file names without extensions
which uses Path.GetFileNameWithoutExtension(fi.Name), but it doesn't work for Silverlight. Intellisense doesn't recognize it.
I found this answer for C#
C# getting file names without extensions
which uses Path.GetFileNameWithoutExtension(fi.Name), but it doesn't work for Silverlight. Intellisense doesn't recognize it.
According to the documentation, Path.GetFileNameWithoutExtension()
is supported in Silverlight 3 and 4. Make sure you have imported System.IO
or used:
... = System.IO.Path.GetFileNameWithoutExtension(fi.Name);