In This Article

BarsCloneService Class

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

public class BarsCloneService : CloneServiceBase, ICloneService
Inheritance:
System.Object CloneServiceBase Object
Implements:
ICloneService

Constructors

BarsCloneService()

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 System.Object

The original object to be cloned.

options CloneOptions

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

defaultType System.Type

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

Returns

System.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 System.Object

The source object.

property System.Windows.Markup.Primitives.MarkupProperty

The property to examine.

Returns

System.Boolean:

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 System.Windows.DependencyObject

The source object.

target System.Windows.DependencyObject

The target object.

sourceDependencyProperty System.Windows.DependencyProperty

The dependency property on the source.

Returns

System.Windows.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 System.Windows.DependencyObject

The source object.

target System.Windows.DependencyObject

The target object.

sourceDependencyProperty System.Windows.DependencyProperty

The property on the source.

targetDependencyProperty System.Windows.DependencyProperty

The property on the target.

Inherited Members