In This Article

BarsCloneService Class

Defines an implementation of CloneServiceBase customized for use specifically with Bars controls.

public class BarsCloneService : CloneServiceBase, ICloneService
Inheritance:
object CloneServiceBase object
Implements:
ICloneService

Constructors

BarsCloneService()

Initializes an instance of the class.

public BarsCloneService()

Methods

CreateCloneCore(object, CloneOptions, Type)

Performs the core logic of cloning an object.

protected override object CreateCloneCore(object original, CloneOptions options, Type defaultType)
Parameter Type Description
original object

The original object to be cloned.

options CloneOptions

The options to use when cloning. When not specified, default options will be used.

defaultType Type

Optionally defines the default type of object to be created when not specified by options.

Returns

object:

A clone of the original object when possible. Otherwise, null or the original object is returned (depending on settings).

IsTransferableMarkupProperty(object, MarkupProperty)

Tests if a System.Windows.Markup.Primitives.MarkupProperty supports transfer.

protected override bool IsTransferableMarkupProperty(object source, MarkupProperty property)
Parameter Type Description
source object

The source object.

property MarkupProperty

The property to examine.

Returns

bool:

true if the property can be transferred; otherwise false if it cannot be transferred.

ResolveTargetDependencyProperty(DependencyObject, DependencyObject, DependencyProperty)

Returns the System.Windows.DependencyProperty of the target which should receive the value of a System.Windows.DependencyProperty on the source.

protected override DependencyProperty ResolveTargetDependencyProperty(DependencyObject source, DependencyObject target, DependencyProperty sourceDependencyProperty)
Parameter Type Description
source DependencyObject

The source object.

target DependencyObject

The target object.

sourceDependencyProperty DependencyProperty

The dependency property on the source.

Returns

DependencyProperty:

The System.Windows.DependencyProperty to be used by the target; otherwise null if a target property is unavailable.

TransferDependencyProperty(DependencyObject, DependencyObject, DependencyProperty, DependencyProperty)

Transfers the value of a System.Windows.DependencyProperty on the source to a System.Windows.DependencyProperty on the target.

protected override void TransferDependencyProperty(DependencyObject source, DependencyObject target, DependencyProperty sourceDependencyProperty, DependencyProperty targetDependencyProperty)
Parameter Type Description
source DependencyObject

The source object.

target DependencyObject

The target object.

sourceDependencyProperty DependencyProperty

The property on the source.

targetDependencyProperty DependencyProperty

The property on the target.

Inherited Members