Hi,
I wanted to nest one xamTileManager control inside another, but am having some difficulty.
The parent xamTileManager has a TileAreaSplitter and only 1 maximized tile is allowed. I have added another xamTileManager to this parents ItemTemplateMaximized as the last tiem vertically. Here are the problems I am facing
- If I align the child xamTileManager vertically and to the right, they hide behind the parent's tiles "minimized" tiles in the TileAreaSplitter
- When I maximize the child tile, it does not occupy the remaining vertical area in the parent xamTileManager. There are no restrications on the row height of the parent grid or the child xamTileManager.
- Is it possible to collapse the TileAreaSplitter to the side of the parent xamTileManager when the child is maximized?
- Is it possible for to hide the parent maximized tile when the child tile is maximized and show it again when the child is "minimized/restored"?
Thanks
Hello Yash, 1) You can collapse the TileAreaSplitter of any of the XamTileManagers by simply setting it's MaximizedModeSettings.ShowTileAreaSplitter property to false. (An instance of the MaximizedModeSettings should be created first because it is null by default)
tileManager.MaximizedModeSettings = new MaximizedModeSettings();
tileManager.MaximizedModeSettings.ShowTileAreaSplitter = false;
You can also use the TileStateChanged event of the XamTileManager to handle the situation when a tile has changed it's state. 2) Since the child XamTileManager and it's tiles are contained within the Content of a tile of the parent XamTileManager, collapsing or hiding the parent tile will hide it's Content as well.
I have attached a sample application where I have used basic DataTemplates for all four ItemTemplates of the XamTileManager. Since I was not able to reproduce the issues you have described in regards to alignment of the child XamTileManager and the area occupied by a tile of the child XamTileManager, would you please modify the sample so these issues are reproduced and send it back to me?Having this information will help me further investigate this matter for you. For more detailed information on using the ItemTemplates, you can take a look at Binding xamTileManager to Data. Looking forward to your reply.
Hi Tacho,
Thanks for your reply and sample.
1) What I meant by collapsing the tile area splitter is; when I Maximize a tile I want to hide all the "non maximized" tiles that are on the other side of the tile area splitter and move the splitter bar to the side.
This way I can see the other tiles by either moving the splitter bar or minimizing the tile.
Setting the ShowTileAreaSplitter to false, simply hides the bar of the tile area splitter, it does not hide the "non maximized" tiles.
2) What I meant was if the user maximizes the child tile is it possible to hide the parent tile. To the user, when they maximize the child tile it would appear as though the child tile is the only tile.
I was setting the HorizontalContentAllignment on the NormalModeSetting which is why it was hiding behind the tile area splitter. Thanks for clarifying this with the example.
Also, I forgot to mention this in my first post.
Is it possible to maximize the first tile by default?
Thanks,
Yash