Gets or sets a value indicating whether the mouse is over this control or over a visual child. This is a game object property.

Namespace: DigitalRune.Game.UI.Controls
Assembly: DigitalRune.Game.UI (in DigitalRune.Game.UI.dll) Version: 1.1.0.0 (1.1.1.9392)

Syntax

C#
public bool IsMouseOver { get; private set; }
Visual Basic
Public Property IsMouseOver As Boolean
	Get
	Private Set
Visual C++
public:
property bool IsMouseOver {
	bool get ();
	private: void set (bool value);
}

Field Value

trueTruetruetrue (True in Visual Basic) if the mouse is over this control or over a visual child; otherwise, falseFalsefalsefalse (False in Visual Basic).

Remarks

Use IsMouseDirectlyOver to check if the mouse is over this control but not over a visual child.

IsMouseOver is set automatically before the input is handled (before OnHandleInput(InputContext)) and IsMouseDirectlyOver is set after all visual children have handled the input.

See Also