Hello.
We are currently using v16.2 and noticed that content bound to a VM inside the Xamtile is not resizing properly when the maximize button is clicked. This worked perfectly without issue on v12.2. My xaml is as follows:
<Grid Name="LayoutRoot" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" > <ig:XamTileManager HorizontalAlignment="Stretch" Name="xamTileMgrAnalysisPage" VerticalAlignment="Stretch" > <ig:XamTileManager.NormalModeSettings> <ig:NormalModeSettings TileLayoutOrder="UseExplicitRowColumnOnTile" AllowTileSizing="No" ShouldAnimate="False" HorizontalTileAreaAlignment="Stretch" VerticalTileAreaAlignment="Stretch" > <ig:NormalModeSettings.TileConstraints> <ig:TileConstraints PreferredWidth="150" PreferredHeight="200" /> </ig:NormalModeSettings.TileConstraints> </ig:NormalModeSettings> </ig:XamTileManager.NormalModeSettings> <ig:XamTileManager.MaximizedModeSettings> <ig:MaximizedModeSettings MaximizedTileLocation="Top" ShowAllMinimizedTiles="True" HorizontalTileAreaAlignment="Stretch"> <ig:MaximizedModeSettings.MinimizedTileConstraints> <ig:TileConstraints PreferredHeight="220" PreferredWidth="325" MinHeight="125" MaxHeight="320" HorizontalAlignment="Stretch"/> </ig:MaximizedModeSettings.MinimizedTileConstraints> <ig:MaximizedModeSettings.MinimizedExpandedTileConstraints> <ig:TileConstraints PreferredHeight="220" PreferredWidth="325" MinHeight="125" MaxHeight="320" HorizontalAlignment="Stretch"/> </ig:MaximizedModeSettings.MinimizedExpandedTileConstraints> </ig:MaximizedModeSettings> </ig:XamTileManager.MaximizedModeSettings>
<ig:XamTile x:Name="TraceGraphTileHeader" ig:XamTileManager.Row="0" ig:XamTileManager.Column="0" ig:XamTileManager.ColumnSpan="2" Header="{Binding TraceGraphHeader}" >
<ContentControl Content="{Binding TraceGraphVM}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" /> </ig:XamTile> <ig:XamTile x:Uid="GraphTileHeader" ig:XamTileManager.Row="1" ig:XamTileManager.Column="0" ig:XamTileManager.ColumnSpan="2" Name="xamTileGraphCtrl" Header="Graph" > <ContentControl Content="{Binding GraphVM}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" /> </ig:XamTile>
<ig:XamTile x:Uid="ListCtrlTileHeader" ig:XamTileManager.Row="2" ig:XamTileManager.Column="0" Name="xamTileListCtrl" Header="Test List" > <ContentControl Content="{Binding ListVM}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" /> </ig:XamTile> <ig:XamTile x:Uid="AnalysisCtrlTileHeader" ig:XamTileManager.Row="2" ig:XamTileManager.Column="1" Name="xamTileAnalysisCtrl" Header="Analysis" HeaderTemplate="{Binding TileHeaderTemplate}" > <ContentControl Content="{Binding AnalysisVM}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" /> </ig:XamTile> </ig:XamTileManager>
</Grid>
I have also included a picture of what the content looks like when it is displayed properly and then when it is messed up after maximizing tile. BTW, the xaml did not change between v12.2 and v16.2. But we did change our application from 32bit to 64bit. Any pointers to fix this issue would be appreciated.
Thanks.
Hello Sudnya,
I have recently answered another forum thread that seems very similar to this one, although I did not have the XamTileManager code there that I have here. As such, I have modified the sample project that I had attached to the other forum thread such that it uses the code that you have provided here, but I cannot seem to reproduce the behavior you are seeing using it either.
I am attaching the sample project I used to test this. This project was built against version 16.2.20162.2045 in Infragistics for WPF 2016.2. Please test this project on your PC; whether or not it works correctly may help indicate the nature of this problem.
If the project does not work correctly, this indicates a problem potentially specific to your testing environment.
If the project does show the product feature working correctly, this indicates a possible problem in the code of your application. It will help if you can provide a small, isolated sample application that demonstrates the behavior you are seeing.
Or, if this sample project is not an accurate demonstration of what you're trying to do, please feel free to modify it and send it back, or send a small sample project of your own if you have one.
Please let me know if you have any other questions or concerns on this matter.
3731.TileManagerChartResizeCase.zip
Andrew,
Thank you for your response and the sample project. The sample project works flawlessly. But obviously it is a very simplified version compared to ours. I will try to add to your sample project and see if I can reproduce the problem.
Thank you for your update. I will continue to monitor this forum thread while I await your next update on this matter.
Please let me know if I may be of further assistance.