Click or drag to resize

ControlPropertyCreate Method

Create a control property referencing a property on the visual.

Namespace: Demo3D.ControlPanel
Assembly: Demo3D.Core (in Demo3D.Core.dll) Version: 19.00.00
Syntax
C#
public static ControlProperty Create(
	Visual visual,
	string propertyName,
	bool canRead = true,
	bool canWrite = true
)

Parameters

visual  Visual
The visual whose property is being controlled.
propertyName  String
The name of the property on the visual that's being control.
canRead  Boolean  (Optional)
True if it's meaningful to read the value of the property.
canWrite  Boolean  (Optional)
True if the control can write a value to the property.

Return Value

ControlProperty
A control panel property.
See Also