I use a XamTileManager with the following normal mode settings:
TileLayoutOrder="UseExplicitRowColumnOnTile" AllowTileSizing="Individual" HorizontalTileAreaAlignment="Stretch" VerticalTileAreaAlignment="Stretch"
With these settings, a new XamTileManager will default with each tile having an equal size. The users can then manually resize the tiles by dragging columns/widths in the typical grid-like fashion.
I have a command in my application that allows the users to restore the tiles to their default size where each tile is the same size. To achieve this, I used to keep a copy of all tiles, clear the tiles from the manager, and then re-add the tiles to the manager. Following these steps had the effect of resetting the tile sizes. However this no longer works in V15.1. When I do this, the tile buttons (maximize/close) no longer work. It's as if they're disconnected from the manager. I spent some time trying to find a way to reset the row/columns without removing the tiles, but can't find anything that's exposed. Is there a way to achieve a reset of XamTile sizes? I'm aware of the PersistenceManager, but that won't work in this case. I need a way to default XamTile back to sharing equal space at any time.
Thanks.
Hello Jason,
I have been looking into the code snippet that you have provided. Could you please send me a simple sample application in which the incorrect behavior can be reproduced. This way I would be able to further investigate this for you and provide you with more detailed information on this matter.
Looking forward to hearing from you
Sincerely,
Horen
Software Developer
Infragistics
Hi Horen,
I've attached a project that duplicates this behavior. When you run the application, there will be two tiles in the manager. Note that you can minimize/maximize the tiles. Once you hit the "Reset Tile Sizes" button, the minimize/maximize buttons no longer work.