Question

I recently discovered memory leaks in our Silverlight application and I have managed to find the source - Context Menu. From what I have searched this is a known issue and there are patches available to fix this. I downloaded the Silverlight ToolKit Source Code and made changes to the class I was having issues with and copied the new DLL to the Silverlight5.0 folder in program files but now I am get XAML Parse Exception errors. I understand this is due to one library being from a different source.

But how do i fix it? I have tried changing references but that didn't help. I tried going back by re-installing Silverlight 5 toolkit but I still get the error.

I haven't found a proper article yet on how to edit and use Silverlight toolkit source code.

Était-ce utile?

La solution

why dont you just add 'Silverlight ToolKit Source Code' as another project in your solution and link it to your main project by reference ? parse exception can occur by you messing something up or the toolkit may be a bit buggy too but with attached toolkit as a project you can edit and try easily, quickly and you will not be influencing other apps using silverlight

Autres conseils

I had the same problem. I think you didn't copy all used *.dll from the new built toolkit solution into your working project. I mean, you have to check all references of your working project, all references depending on the toolkit solution have to be renewed to your newly built toolkit project.

The problem is that there are some *.dll's which are linked to each other, when you replace only one of them, the compiler can't ind the other one.

  1. Build entire toolkit solution
  2. Delete old references in your working project
  3. Place all used *.dll's from the toolkit solution into your project
  4. Add new references
  5. Build
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top