UtilFormsShakeControl Method

Shakes the window of a Control during the specified amount of time.

Definition

Namespace: DevCase.Core.Application.Forms
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static void ShakeControl(
	Control ctrl,
	int amplitudeFactor,
	TimeSpan timespan
)

Parameters

ctrl  Control
The Control to shake.
amplitudeFactor  Int32
When bigger the value, bigger the effect amplitude.

Recommended value: 15

timespan  TimeSpan
The amount of time the effect will last.

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

See Also