MindFusion.Scheduling for Silverlight Programmer's Guide
ResourceViewSettings.SnapUnit Property
See Also
 





Gets or sets the snap unit.

Namespace: MindFusion.Scheduling.Silverlight
Assembly: MindFusion.Scheduling.Silverlight

 Syntax

C#  Copy Code

public TimeUnit SnapUnit { get; set; }

Visual Basic  Copy Code

Public Property SnapUnit As TimeUnit

 Property Value

A member of the TimeUnit enumeration.

 Remarks

This property works in conjunction with SnapUnitCount when EnableSnapping is set to true. These properties specify a virtual grid to which the items are aligned when modified interactively. If custom snapping is disabled, the items are aligned to the cells of the view.

To completely disable snapping, specify custom snapping with very small resolution - for example, one second.

 Example

The following example disables snapping:

C#  Copy Code
calendar.ResourceViewSettings.EnableSnapping = true;
calendar.ResourceViewSettings.SnapUnit = TimeUnit.Second;
calendar.ResourceViewSettings.SnapUnitCount = 1;
Visual Basic  Copy Code
calendar.ResourceViewSettings.EnableSnapping = True
calendar.ResourceViewSettings.SnapUnit = TimeUnit.Second
calendar.ResourceViewSettings.SnapUnitCount = 1

 See Also

ResourceViewSettings Members
ResourceViewSettings Class
MindFusion.Scheduling.Silverlight Namespace
SnapUnitCount Property
EnableSnapping Property