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 |
Returns
- System.Object:
A clone of the original object when possible. Otherwise,
nullor 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:
trueif the property can be transferred; otherwisefalseif 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; otherwisenullif 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
- CloneServiceBase.CanCloneDependencyPropertyValue(DependencyObject, DependencyProperty)
- CloneServiceBase.CreateClone(Object)
- CloneServiceBase.CreateClone(Object, CloneOptions)
- CloneServiceBase.CreateClone<T>(Object)
- CloneServiceBase.CreateClone<T>(Object, CloneOptions)
- CloneServiceBase.CreateInstance(Object, CloneOptions, Type)
- CloneServiceBase.GetExplicitlyTransferredDependencyProperties(DependencyObject)
- CloneServiceBase.ResolveTargetProperty(Object, Object, PropertyDescriptor)
- CloneServiceBase.TransferProperty(Object, Object, PropertyDescriptor, PropertyDescriptor)
- System.Object.ToString()
- System.Object.Equals(System.Object)
- System.Object.Equals(System.Object, System.Object)
- System.Object.ReferenceEquals(System.Object, System.Object)
- System.Object.GetHashCode()
- System.Object.GetType()
- System.Object.MemberwiseClone()