Table of Contents

Class BeaconBehavior

Namespace
McServerLauncher.Behaviors
Assembly
McServerLauncher.dll

Every so often, gives a control a short "I'm here" animation: the styles for it are .beacon-a / .beacon-b in Styles/Motion.axaml, and this only decides when.

public static class BeaconBehavior
Inheritance
BeaconBehavior
Inherited Members

Remarks

A timer that starts a two-second animation, rather than one long animation that sits still for most of its length. The long one was tried first and does not hold up: Avalonia only advances an animation while the clock is being driven, and with nothing else on screen moving, a 25-second timeline spent 23 seconds frozen on its first frame and never reached the part that moves.

It keeps quiet while the pointer is on it (it has been found) and while the control carries the class quiet (what it points to is already open). Either one ending starts the wait again from zero, so it never fires the moment the pointer leaves.

Fields

IsEnabledProperty

public static readonly AttachedProperty<bool> IsEnabledProperty

Field Value

AttachedProperty<bool>

Methods

GetIsEnabled(Control)

public static bool GetIsEnabled(Control c)

Parameters

c Control

Returns

bool

SetIsEnabled(Control, bool)

public static void SetIsEnabled(Control c, bool value)

Parameters

c Control
value bool