Click or drag to resize
DigitalRuneGameEventTRaiseOnEvent Property
Event handler that automatically raises this game object event when another event occurs.

Namespace: DigitalRune.Game
Assembly: DigitalRune.Game (in DigitalRune.Game.dll) Version: 1.4.0.0 (1.4.0.14427)
Syntax
public EventHandler<EventArgs> RaiseOnEvent { get; }

Property Value

Type: EventHandlerEventArgs
Remarks

This event handler can be used to raise this game event in response to another event. It can, for example, be used to connect the Changed event of a GamePropertyT to this event.

C#
myFloatProperty.Changed += new EventHandler<GamePropertyEventArgs<float>>(myEvent.RaiseOnEvent);

myEvent is fired every time when myFloatProperty changes its value.

See Also