Version

AllowMoving Property

Gets or sets the value indicating whether the UltraTile can be moved.
Syntax
'Declaration
 
Public Property AllowMoving As Boolean
public bool AllowMoving {get; set;}

Property Value

True if the UltraTile is allowed to be moved from its current location; False otherwise.
Remarks

This applys to direct movement from the user and indirect movement for when the user drags another UltraTile over the current UltraTile.

This property will be ignored when a tile is placed in the Large state and all Normal state tiles must be moved to the side. This will also not affect the ability for the tile to be moved programmatically with the SetPositionInNormalMode method or by setting the PositionInNormalMode proeprty.

Example
The following code demonstrates hwo to prevent an UltraTile from moving.

Imports System.Windows.Forms
Imports Infragistics.Win
Imports Infragistics.Win.Misc

' Get the first tile in the UltraTilePanel
Dim tile As UltraTile = Me.UltraTilePanel1.Tiles(0)

' Prevent the tile from being dragged by the user or swapped when another tile is 
' dragged over this tile.
tile.AllowMoving = False
using System.Windows.Forms;
using Infragistics.Win;
using Infragistics.Win.Misc;

// Get the first tile in the UltraTilePanel
UltraTile tile = this.ultraTilePanel1.Tiles[ 0 ];

// Prevent the tile from being dragged by the user or swapped when another tile is 
// dragged over this tile.
tile.AllowMoving = false;
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also