Click or drag to resize

VisualRemoveBindingInterface Method

Add a custom property to the visual. This property is set to be a binding interface using the declared access rights.

Namespace:  Demo3D.Visuals
Assembly:  Demo3D.Core (in Demo3D.Core.dll) Version: 18.03.00
Syntax
C#
public void RemoveBindingInterface(
	IBindingInterfaceOwner owner,
	string name,
	string prefix = null,
	string separator = null
)

Parameters

owner
Type: Demo3D.VisualsIBindingInterfaceOwner
Name of custom property to create.
name
Type: SystemString
Name of custom property to create.
prefix (Optional)
Type: SystemString
If the visual already has a custom property with the same name this will force the property to have a unique name
separator (Optional)
Type: SystemString
If the visual already has a custom property with the same name this will force the property to have a unique name

Return Value

Type: 
A newly-created or updated CustomProperty object
Examples
C#
// Create a new custom property of type String with value "X":
sender.AddCustomProperty("Label", "X", "My Label property");

// You can also set a category for your custom properties:
var cp = sender.AddCustomProperty("Label", "X", "My Label property");
cp.Category = "My Properties";

// You can also take short-cut and avoid defining the cp variable:
sender.AddCustomProperty(
    "Label",
    "X",
    "My Label property"
    ).Category = "My Properties";
See Also