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"?
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.
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?
Hello Yash, 1) In order to hide the minimized tiles when another is maximized, you can handle the TIleStateChanged event of the XamTileManager by iterating through all tiles that have IsMaximized property set to False and set their IsClosed property to true. If the XamTileManager is not in maximized mode, then the IsClosed property of all the tiles should be False. 2) The XamTileManager does not support the functionality of visualizing the child tile from the content of another tile, while hiding the parent one. You can always submit a new product idea at http://ideas.infragistics.com. In order to maximize the first tile by default, you can handle the Loaded event of the XamTileManager and set the IsMaximized property of it's first tile to True. I have modified the sample application from my previous reply with the approaches from above. If you require any further assistance on this matter, please let me know.
Though closing the tiles does hide the non-maximized tiles, the only way I can see them is by restoring the tile I have open and not by sliding the split area bar.
The functionality I was looking for was to see if I can use the area splitter as a collapsible OR expandable column.
I guess the tile manager does not provide this functionality right now.
Thanks for your help.
Hello Yash,Thank you for your feedback.If you require any further assistance on this matter, please let me know.