Do not cleanup filename in silverlight
Do not compile regex in Silverlight
Move trait attribute to methods in Silverlight