I use the TilePanel to basically create a multi document interface for the top level records that are displayed in my app. My problem is that if users click the close button, the tile closes, but stays in memory along with the control it contains and therefore is not disposed and no new instance can be created. I tried using a sample I found somehwere on this site, but it did not work.
Any help would be appreciated
Hi,
You could try to dispose or remove the tile in its VisibleChanged event if the tile is invisible (closed).
I hope this will help you.
Best Regards,
Stefaniya
I tried that. but apparently while the tiles are changing their state, they all change their visibility so I ended up with no windows left.
Can you give me a sample showing what you are doing so I can suggest you something more helpful
Regards,
Not sure what you're asking. I am loading my windows (usercontols) into individual tiles. When a user clicks the close button I would like to destroy the user control and remove the tile from the TilePanel.Tiles Collection or give them an option to abort the closing if they made a mistake. This allows me to reload a window if need be from scratch and allows me to run code in the dispose method that I need to run.
In the following forum thread you will see an approach with creation filter http://blogs.infragistics.com/forums/t/31865.aspx . I could suggest you to catch which tile is meant to be closed (hidden) and then in the VisibleChanged event if the tile to remove it from the TileCollection of the ultraTilePanel.
Let me know if this works for you.
Developer Support Engineer
Infragistics, Inc
http://es.infragistics.com/support
I created a support ticket with number CAS-45507-QHV6CK for you. I will send you the sample there.
Yeah... I saw that, but I'm a VB.Net programmer, do you have the same thing in visual basic instead of c#?