525
Content bound to a VM inside a XamTile does not resize properly when tile maximized
posted

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.

Parents Reply Children
No Data