Hello,
I have Rick Kauwen's same issue (or close).
Given the TileView:
I have the problem:
1. TileView is empty.
2. Two items are added to TileViewItemViewModels.
3. Second TileViewItem is maximized via ToggleState button.
4. TileViewItemViewModels is cleared due to an external reason (TileViewItemViewModels.Clear())
5. TileViewItemViewModels is added two new TileViewItemViewModel.
6. MaximizedItem is set to TileViewItemViewModels[1] on TileViewViewModel (this.MaximizedItem = this.TileViewItemViewModels[1]).
Mind that this time the MaximizedItem is set via ViewModel, not by clicking on the ToggleState button.
7. Due to step 6, The TileView is on an invalid state. Only 1 TileViewItem is shown (the maximized one), the other one (the minimized one) goes missing.
8. If the maximized one is restored, I can see a gap taking 50% of the TileView. The other 50% of the TileView is taken by the just restored TileViewItem.
However, on step 6, setting the first TileViewItemViewModel as maximized does work.
A fix as suggested is not feasible as most logic about the Maximized Item is handled on the ViewModel.
Your help is welcome.
Thank you,