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,
I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.
The project uses .Net 4.0, so you should be able to open the project with VS 2010, but since you have issues I can suggest you copy the MainWindow.xaml and MainWindow.xaml.cs files in a new project and add references to the infragisticswpf4.controls.layouts.xamtilemanager.v13.1 and InfragisticsWPF4.v13.1 assemblies.
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
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.