Click or drag to resize
DigitalRuneIUIRendererGetAttributeT Method
Gets a style-specific attribute value.

Namespace: DigitalRune.Game.UI.Rendering
Assembly: DigitalRune.Game.UI (in DigitalRune.Game.UI.dll) Version: 1.8.0.0 (1.8.0.14553)
Syntax
bool GetAttribute<T>(
	string style,
	string name,
	out T result
)

Parameters

style
Type: SystemString
The style.
name
Type: SystemString
The name of the attribute.
result
Type: T
The attribute value.

Type Parameters

T
The type of the attribute value.

Return Value

Type: Boolean
if the renderer can provide a value for the attribute; otherwise, if the renderer does not know the style or the attribute.
Remarks
The renderer can define the visual style of the UIControls. When a control is loaded, it initializes its properties with values provided by this method.
See Also