Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
295
Programmically resizing tiles does not work after manually resizing a tile or a layout loaded
posted

I have tiles with content that expands vertically (grids that add rows) so I found this thread (http://blogs.infragistics.com/forums/t/46088.aspx) and tried the solution, TilesPanel.InvalidMeasure() and it works, yet not for all cases. 

If a tile has been manually resized, or a layout loaded with a PreferredWidthOverride and PreferredHeightOverride for each tile, then those tiles will not respond to content size changes even when using the TilesPanel.InvalidMeasure() workaround. Oh, and if the VerticalTileAreaAlignment is set to Stretch it won't work either.

I tried setting the preferred height Constraints for individual tiles, hoping it would override whatever the TilesPanel is calculating - no luck. The only way I could accomplish this was to set the min height Constraint for each tile as it expanded or contracted.

This is an awful workaround as it requires a lot of code behind, can someone please help me with a better solution. It can be easily reproduced using the XamTileDemo posted in the link above. Manually resize the Beverages tile before pressing Add Beverages.

This is version 10.3, I'm going to try 11 next week.