2010-08-12, 04:08 PM
When I add a bitmap to a UiList.ListItem, does it manage the bitmap after that?
So if I use uiList.SetListObjects(list) again to change the contents of base.uiList
, do I need to clean up the old list?
How about a UiStatic? If I change the image like
// myImage is a UiStatic, previously created with another image
Hashtable h = new Hashtable();
h.Add("@image", MyNewBitmapImage );
myImage = new UiStatic("myImage", h, mySkinHelper);
is the old bitmap cleaned up?
Thanks
So if I use uiList.SetListObjects(list) again to change the contents of base.uiList
, do I need to clean up the old list?
How about a UiStatic? If I change the image like
// myImage is a UiStatic, previously created with another image
Hashtable h = new Hashtable();
h.Add("@image", MyNewBitmapImage );
myImage = new UiStatic("myImage", h, mySkinHelper);
is the old bitmap cleaned up?
Thanks