In short it is possible, yet is there a better way to do it than how I have.
To accomplish this I set the min/max tile constraints of both Minimized and MinimizedExpanded to 0, set all InterTileSpacing for Maximized mode to 0, and set the ShowTileAreaSplitter to false.
This allows only the maximized tile to be seen, yet there is a slight space to the left of the tile where the tile area splitter and minimized tiles would have been. This results in an ugly shift of the right side of the maximized tile.
To lessen the impact to the user I have moved the maximized tile to the top, so the ugly shift and extra space is added to the bottom of the tile.
I would like to remove this space entirely and prevent the shift from happening, could you please advise on the best way to do this. Thanks!
Hi Taylor,
One approach to try would be to supply a style for Tile that binds its Visibility property to its State property using a converter that returns 'Collapsed' for the miminized states. Then don't set any tile constraints.
Theoretically this should work although I haven't tried this myself and I doubt anyone else has.
Please let me know if this works. If not I would recommend submitting a feature request.
Thanks Joe!
I tried maximizing a layout with a single tile, and there's no extra padding or shift, so I figured it has to do with the minimized tiles.
I was already collapsing minimized tiles as I have overridden the style for the Tile and added triggers to collapse the tile when in Minimized and MinimizedExpanded states. I disabled these triggers to see if the minimized tiles would display, and sure enough a small tile displays where the extra padding is.Thus setting min/max to zero does not actually set the tile size to zero.
I wonder if using a binding would work better than a trigger. Perhaps the trigger is being evaluated after the TilesPanel measures and arranges the tiles, so the tiles aren't being completely collapsed.
I was also considering an even that goes off after the State property changes, yet again it would ahve to be before the TilesPanel measures and arranges...