Jb, You are correct, the resource can be removed and added again.But the Question is how do I write the baml to the Resource that I am going to create.
I can read each dictionaryentry from the resource reader but not able to create a resource. SrcK On Feb 15, 1:12 pm, Jb Evain <[email protected]> wrote: > Hey, > > On Feb 15, 2012, at 9:00 AM, srcKode wrote: > > > In Silver Light the XAML files are added to a .resources file named > > <assemblyname>.g.resources. This .resources file contains the binary > > version of the XAML files (BAML). > > > The problem is I am able to iterate through the resources' file but > > not able to add a new entry to it.Also because the > > ModuleDefinition.Resources property is ReadOnly I cannot set a > > Resource Collection to it. > > But you can remove the original .g.resources resource from the collection and > add a new one. > Or you can Clear() the whole collection and add new elements. > > Jb -- -- mono-cecil
