I wrote this code in my program (simplified for better clarity) :
public struct MyStruct { public System.Windows.Controls.Image MyImage; private Syste