I would like to persist the position of each tile, but am having a hard time figuring out how to do it. In your grid, you have a Visible_Position property for the grid columns and this indicates the order of the columns. Do you have something similar for the tiles in the TilePanel control? When a tile is moved, I was expecting the index in the collection to change, but that doesn't seem to be the case. What is the best approach. I don't really want to save x,y coordinates since that can change based on screen resolution.
I had a similiar requirement and PositionInNormalMode worked for me.
I also use a linq statement to retrieve the tiles in order of PositionInNormalMode. In my project I only allow one row of tiles so it worked great for me.
List<UltraTile> ultraTiles = tilePanel.Tiles.OrderBy( t => t.PositionInNormalMode.X ).ToList();
Hello,
The PositionInNormalMode property will supply you with the row and column index values for the owning UltraTilePanel which is similiar to determining a cell in the UltraWinGrid. I attached a very basic sample that demonstrates this as well as how the use of using the Save and LoadFromXml methods.
Please review this and let us know if you have any questions.