Contents tagged with Silverlight
In WPF or Silverlight application, the vectorial is king. It is for this reason that as soon as I can, I use a Path instead of a picture.
Therefore, you can have the same Path several times in the application. The temptation is strong to create a Style with a value in the Data property.
Unfortunately, there is a known bug with this property. When it is used in a style, the path is instantiated once. That is to say that if you have for example a list of item that uses the same style, only the first will be displayed. No error, but not the expected behavior.
One of the first times that I worked with Silverlight, I wanted refactoring my application and create a project named "MyProject.Client.Resources.". This project should contains various style sheets and other common resources with the rest of the project.
The application worked perfectly and after refactoring, catastrophe, nothing works. No errors (compilation or run-time). In the application, everything seems to work as if there weren't any available resource.
It happens sometimes that you want to make a line break in XAML view. As this language is based on XML, it becomes problematic because traditional characters do not work.
If you do not have the chance to use Visual Studio 2012, you still have to suffer the vagaries of old designer. Heavy, slow and memory leaks, welcome to hell.
I propose two solutions to facilitate the modification of XAML files.