Version

Modify Tile Behaviors in Normal Mode

The xamTileManager™ exposes a NormalModeSettings property that allows you to modify the behavior and layout of tiles in the normal state. The NormalModeSettings object exposes the following properties:

The xamTileManager does not automatically initialize the NormalModeSettings property. If you want to set any properties exposed by the NormalModeSettings property in code, you must set xamTileManager’s NormalModeSettings property to an instance of a NormalModeSettings object.

The following example code demonstrates how to modify tile behaviors in normal mode.

In XAML:

<ig:XamTileManager Name="xamTileManager1">
    <ig:XamTileManager.NormalModeSettings>
        <ig:NormalModeSettings
            AllowTileDragging="Swap"
            AllowTileSizing="Individual"
            MaxColumns="2"
            MaxRows="2" />
    </ig:XamTileManager.NormalModeSettings>
    <!--Add Tiles here-->
</ig:XamTileManager>

In Visual Basic:

Imports Infragistics.Controls.Layouts
...
If Me.xamTileManager1.MaximizedModeSettings Is Nothing Then
    Me.xamTileManager1.NormalModeSettings = New NormalModeSettings()
End If
Me.xamTileManager1.NormalModeSettings.AllowTileDragging = _
    AllowTileDragging.Swap
Me.xamTileManager1.NormalModeSettings.AllowTileSizing = _
    AllowTileSizing.Individual
Me.xamTileManager1.NormalModeSettings.MaxColumns = 2
Me.xamTileManager1.NormalModeSettings.MaxRows = 2
...

In C#:

using Infragistics.Controls.Layouts;
...
if (this.xamTileManager1.NormalModeSettings == null)
{
    this.xamTileManager1.NormalModeSettings = new NormalModeSettings();
}
this.xamTileManager1.NormalModeSettings.AllowTileDragging =
    AllowTileDragging.Swap;
this.xamTileManager1.NormalModeSettings.AllowTileSizing =
    AllowTileSizing.Individual;
this.xamTileManager1.NormalModeSettings.MaxColumns = 2;
this.xamTileManager1.NormalModeSettings.MaxRows = 2;
...