ModifierGroup
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
public ModifierGroup()
modifierGroup = ModifierGroup()
Initializes a new instance of the ModifierGroup class.
public ModifierGroup(IChartModifier[] childModifiers)
modifierGroup = ModifierGroup(childModifiers)
Initializes a new instance of the ModifierGroup class.
- childModifiers
- The child modifier collection.
Properties
public ObservableCollection<IChartModifier> ChildModifiers { get; set; }
value = modifierGroup.ChildModifiers
modifierGroup.ChildModifiers = value
Gets or sets a collection of child modifiers in this group
public IChartModifier Item { get; }
value = modifierGroup.Item
Gets the IChartModifier with the specified name.
- name
- The name.
public IChartModifier Item { get; }
value = modifierGroup.Item
Gets the IChartModifier at the specified index.
- index
- The index.
Methods
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.
protected override void OnAnnotationCollectionChanged(object sender, NotifyCollectionChangedEventArgs args)
modifierGroup.OnAnnotationCollectionChanged(sender, args)
Called when the AnnotationCollection changes
public override void OnAttached()
modifierGroup.OnAttached()
Called when the Chart Modifier is attached to the Chart Surface
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.
public override void OnDetached()
modifierGroup.OnDetached()
Called immediately before the Chart Modifier is detached from the Chart Surface
protected override void OnIsEnabledChanged()
modifierGroup.OnIsEnabledChanged()
Called when the IsEnabled property changes on this ChartModifierBase instance
public override void OnMasterMouseLeave(ModifierMouseArgs e)
modifierGroup.OnMasterMouseLeave(e)
Called when the mouse leaves the Master of current MouseEventGroup
- e
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
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
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
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
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
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
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
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
protected override void OnXAxesCollectionChanged(object sender, NotifyCollectionChangedEventArgs args)
modifierGroup.OnXAxesCollectionChanged(sender, args)
Called with the XAxesAxisCollection changes
protected override void OnYAxesCollectionChanged(object sender, NotifyCollectionChangedEventArgs args)
modifierGroup.OnYAxesCollectionChanged(sender, args)
Called with the YAxesAxisCollection changes
public override void ReadXml(XmlReader reader)
modifierGroup.ReadXml(reader)
Generates ChartModifierBase from its XML representation.
- reader
public override void ResetInertia()
modifierGroup.ResetInertia()
Instantly stops any inertia that can be associated with this modifier.
public override void WriteXml(XmlWriter writer)
modifierGroup.WriteXml(writer)
Converts ChartModifierBase into its XML representation.
- writer
Fields
public static readonly DependencyProperty ChildModifiersProperty
value = ModifierGroup.ChildModifiersProperty
Defines the ChildModifiers DependencyProperty