Click or drag to resize
DigitalRuneUIRendererRenderCallbacks Property
Gets the render callbacks.

Namespace: DigitalRune.Game.UI.Rendering
Assembly: DigitalRune.Game.UI (in DigitalRune.Game.UI.dll) Version: 1.8.0.0 (1.8.0.14553)
Syntax
public Dictionary<string, Action<UIControl, UIRenderContext>> RenderCallbacks { get; }

Property Value

Type: DictionaryString, ActionUIControl, UIRenderContext
The render callbacks.
Remarks

The render callbacks are methods that render a given control. The keys in this dictionary are the style names, e.g. "TextBox".

The render callbacks get the UIControl to be rendered and a UIRenderContext that contains additional information as input parameters. When the render callback is called, the background of the control has already been cleared by the UIRenderer if the UIControl uses a Background color. The UIRenderContext contains the control's effective Opacity and the effective RenderTransform. (These properties are automatically updated by the UIRenderer.)

Render callbacks may cache information in RenderData.

See Also