I am trying to build a strategy game in WPF, and it will involve lots of interactive tiles and graphics. The resources of constantly regenerating XAML on the fly is a pain on resources, when its including 100 or more various image placements.
I am used to writing games using an image buffer, and plan to apply the same technique in WPF.
I will be storing a bitmap in memory, manipulating it, and then refreshing the XAML that holds a reference to it.
*** I want XAML to refer to a location in memory, instead of a file in specific, then I can just refresh it everytime I change the image in memory.
If anyone understands what I'm trying to do, and has a better way, please let me know.