Click or drag to resize
DigitalRuneUIControlOverrideDefaultValueT Method
Overrides the default value of a game object property for a specific class.

Namespace: DigitalRune.Game.UI.Controls
Assembly: DigitalRune.Game.UI (in DigitalRune.Game.UI.dll) Version: 1.8.0.0 (1.8.0.14553)
Syntax
public static void OverrideDefaultValue<T>(
	Type ownerType,
	int propertyId,
	T defaultValue
)

Parameters

ownerType
Type: SystemType
The class type.
propertyId
Type: SystemInt32
The ID of the game object property.
defaultValue
Type: T
The new default value.

Type Parameters

T
The type of the property value.
Exceptions
ExceptionCondition
ArgumentNullExceptionownerType is .
Remarks
These class-specific default values are applied to the template when the control is loaded.
See Also