hello i'm using xamtile in xamtilemanager 9X9
I want xamtile to automatically resize
<picture 1> xaml
<ig:NormalModeSettings HorizontalTileAreaAlignment="Stretch" VerticalTileAreaAlignment="Stretch" TileLayoutOrder="Horizontal" AllowTileDragging="Swap" AllowTileSizing="No"> <ig:NormalModeSettings.TileConstraints> <ig:TileConstraints PreferredHeight="1" PreferredWidth="300"/> </ig:NormalModeSettings.TileConstraints> </ig:NormalModeSettings>
<picture 2>
<ig:NormalModeSettings HorizontalTileAreaAlignment="Stretch" VerticalTileAreaAlignment="Stretch" TileLayoutOrder="Horizontal" AllowTileDragging="Swap" AllowTileSizing="No"><ig:NormalModeSettings.TileConstraints><ig:TileConstraints PreferredHeight="1" PreferredWidth="400"/></ig:NormalModeSettings.TileConstraints></ig:NormalModeSettings>
I want to use <ig:TileConstraints PreferredHeight="auto" PreferredWidth="auto"/> but auto is can't.
In addition, binding to PreferredHeight and Preferredwidth is not possible.
Is there any way to automatically align the xamtile without specifying the size?
sorry 9x9 is 3x3. The reason I need autosize is that I also need 4x4 = 16xamtile. However, if you apply <ig:TileConstraints PreferredHeight="1" PreferredWidth="400"/> to 4x4, the alignment is not done.
<ig:XamTileManager.NormalModeSettings> <ig:NormalModeSettings MaxColumns="2" MaxRows="2" HorizontalTileAreaAlignment="Stretch" VerticalTileAreaAlignment="Stretch" TileLayoutOrder="Horizontal" AllowTileDragging="Swap" AllowTileSizing="No"> <ig:NormalModeSettings.TileConstraints> <ig:TileConstraints PreferredHeight="1" PreferredWidth="1"/> </ig:NormalModeSettings.TileConstraints> </ig:NormalModeSettings> </ig:XamTileManager.NormalModeSettings>
MaxColumns 2, MaxRows 2 = 4tiles
MaxColumns 3, MaxRows 3 = 9tiles
MaxColumns 4, MaxRows 4 = 16tiles
I think I've found a way, but it's not perfect. In my opinion, if can control MaxColumns and MaxRows with a Binding, it will work perfectly. Can I bind this?