ModifierGroup

StockSharp.Xaml.Charting.ChartModifiers

Allows a collection of modifiers to be set on the ChartModifier property. Child modifiers are stored in the ChildModifiers collection, which is backed by a DependencyProperty so may be bound to in Xaml.

Inherits: MasterSlaveChartModifier

Constructors

ModifierGroup
public ModifierGroup()
modifierGroup = ModifierGroup()

Initializes a new instance of the ModifierGroup class.

ModifierGroup
public ModifierGroup(IChartModifier[] childModifiers)
modifierGroup = ModifierGroup(childModifiers)

Initializes a new instance of the ModifierGroup class.

childModifiers
The child modifier collection.

Properties

ChildModifiers
public ObservableCollection<IChartModifier> ChildModifiers { get; set; }
value = modifierGroup.ChildModifiers
modifierGroup.ChildModifiers = value

Gets or sets a collection of child modifiers in this group

Item
public IChartModifier Item { get; }
value = modifierGroup.Item

Gets the IChartModifier with the specified name.

name
The name.
Item
public IChartModifier Item { get; }
value = modifierGroup.Item

Gets the IChartModifier at the specified index.

index
The index.

Methods

HasModifier
public bool HasModifier(Type desiredType)
result = modifierGroup.HasModifier(desiredType)

Determines whether the current ModifierGroup has a child modifier of the desired type

desiredType
The type of child modifier to search for

Returns: true if the current ModifierGroup has a chlid modifier by this type; otherwise, false.

OnAnnotationCollectionChanged
protected override void OnAnnotationCollectionChanged(object sender, NotifyCollectionChangedEventArgs args)
modifierGroup.OnAnnotationCollectionChanged(sender, args)

Called when the AnnotationCollection changes

OnAttached
public override void OnAttached()
modifierGroup.OnAttached()

Called when the Chart Modifier is attached to the Chart Surface

OnDataContextChanged
protected override void OnDataContextChanged(object sender, DependencyPropertyChangedEventArgs e)
modifierGroup.OnDataContextChanged(sender, e)

Called when the DataContext of the ChartModifierBase changes

sender
The sender.
e
The DependencyPropertyChangedEventArgs instance containing the event data.
OnDetached
public override void OnDetached()
modifierGroup.OnDetached()

Called immediately before the Chart Modifier is detached from the Chart Surface

OnIsEnabledChanged
protected override void OnIsEnabledChanged()
modifierGroup.OnIsEnabledChanged()

Called when the IsEnabled property changes on this ChartModifierBase instance

OnMasterMouseLeave
public override void OnMasterMouseLeave(ModifierMouseArgs e)
modifierGroup.OnMasterMouseLeave(e)

Called when the mouse leaves the Master of current MouseEventGroup

e
OnModifierDoubleClick
public override void OnModifierDoubleClick(ModifierMouseArgs e)
modifierGroup.OnModifierDoubleClick(e)

Called when a Mouse DoubleClick occurs on the parent UltrachartSurface

e
Arguments detailing the mouse button operation
OnModifierMouseDown
public override void OnModifierMouseDown(ModifierMouseArgs e)
modifierGroup.OnModifierMouseDown(e)

Called when a Mouse Button is pressed on the parent UltrachartSurface

e
Arguments detailing the mouse button operation
OnModifierMouseMove
public override void OnModifierMouseMove(ModifierMouseArgs e)
modifierGroup.OnModifierMouseMove(e)

Called when the Mouse is moved on the parent UltrachartSurface

e
Arguments detailing the mouse move operation
OnModifierMouseUp
public override void OnModifierMouseUp(ModifierMouseArgs e)
modifierGroup.OnModifierMouseUp(e)

Called when a Mouse Button is released on the parent UltrachartSurface

e
Arguments detailing the mouse button operation
OnModifierMouseWheel
public override void OnModifierMouseWheel(ModifierMouseArgs e)
modifierGroup.OnModifierMouseWheel(e)

Called when the Mouse Wheel is scrolled on the parent UltrachartSurface

e
Arguments detailing the mouse wheel operation
OnModifierTouchDown
public override void OnModifierTouchDown(ModifierTouchManipulationArgs e)
modifierGroup.OnModifierTouchDown(e)

Called when a Multi-Touch Down interaction occurs on the parent UltrachartSurface

e
Arguments detailing the manipulation operation
OnModifierTouchMove
public override void OnModifierTouchMove(ModifierTouchManipulationArgs e)
modifierGroup.OnModifierTouchMove(e)

Called when a Multi-Touch Move interaction occurs on the parent UltrachartSurface

e
Arguments detailing the manipulation operation
OnModifierTouchUp
public override void OnModifierTouchUp(ModifierTouchManipulationArgs e)
modifierGroup.OnModifierTouchUp(e)

Called when a Multi-Touch Up interaction occurs on the parent UltrachartSurface

e
Arguments detailing the manipulation operation
OnXAxesCollectionChanged
protected override void OnXAxesCollectionChanged(object sender, NotifyCollectionChangedEventArgs args)
modifierGroup.OnXAxesCollectionChanged(sender, args)

Called with the XAxesAxisCollection changes

OnYAxesCollectionChanged
protected override void OnYAxesCollectionChanged(object sender, NotifyCollectionChangedEventArgs args)
modifierGroup.OnYAxesCollectionChanged(sender, args)

Called with the YAxesAxisCollection changes

ReadXml
public override void ReadXml(XmlReader reader)
modifierGroup.ReadXml(reader)

Generates ChartModifierBase from its XML representation.

reader
ResetInertia
public override void ResetInertia()
modifierGroup.ResetInertia()

Instantly stops any inertia that can be associated with this modifier.

WriteXml
public override void WriteXml(XmlWriter writer)
modifierGroup.WriteXml(writer)

Converts ChartModifierBase into its XML representation.

writer

Fields

ChildModifiersProperty
public static readonly DependencyProperty ChildModifiersProperty
value = ModifierGroup.ChildModifiersProperty

Defines the ChildModifiers DependencyProperty