What I want to do is have a horizontal or vertical scrollbar appear within the tile when it is equal to or less than a specified size. It should be able to scroll the entire content within the tile.
In this instance, I would like the horizontal scrollbar to appear when the tile is less than the preferred width, and the vertical scrollbar to appear when the height is less than 790 pixels. How can I accomplish this?
I have the following code for my XamTiles when they are in Normal Mode:
<ig:XamTileManager.NormalModeSettings>
<ig:NormalModeSettings AllowTileSizing="Individual" VerticalTileAreaAlignment="Stretch" HorizontalTileAreaAlignment="Left" ShowAllTiles="False" MaxColumns="10" MinColumns="1" MaxRows="1" TileLayoutOrder="Vertical" ShouldAnimate="True" ExplicitLayoutTileSizeBehavior="SynchronizeTileHeightsAcrossColumns">
<ig:NormalModeSettings.TileConstraints> <ig:TileConstraints PreferredWidth="875" PreferredHeight="{Binding ElementName=MainTiles, Path=ActualHeight}" MinHeight="400" MinWidth="400" VerticalAlignment="Top" HorizontalAlignment="Left" /> </ig:NormalModeSettings.TileConstraints>
</ig:NormalModeSettings>
</ig:XamTileManager.NormalModeSettings>
Hello,
Thank you for your post. I have been looking into it and I created a sample project for you with the functionality you want. Basically I copied the default Style of the XamTile and add a ScrollViewer in its Template. I also bound the vertical and horizontal scrollbar’s Visibilities to ActualHeight and ActualWidth of the XamTile. Then with a converter I determine whether to show the scrollbars or not based on the size of the Tile. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
HI,
I am working in VS 2010 in Windows 7. Can you please remit with a compatible version? I cannot open the one you sent.
Thanks