C1.Silverlight.Chart Namespace > Axis Class : AnnoCreated Event |
'Declaration
Public Event AnnoCreated As AnnoCreatedEventHandler
'Usage
Dim instance As Axis Dim handler As AnnoCreatedEventHandler AddHandler instance.AnnoCreated, handler
public event AnnoCreatedEventHandler AnnoCreated
The event handler receives an argument of type AnnoCreatedEventArgs containing data related to this event. The following AnnoCreatedEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Cancel | (Inherited from System.ComponentModel.CancelEventArgs) |
Canvas | Gets the axis canvas. |
Index | Gets the index of annotation label. |
Label | Gets or sets the label element. |
Value | Gets the axis value that corresponds to the annotation label. |
chart.View.AxisY.AnnoCreated += (s, e) => { var label = (TextBlock)e.Label; if (e.Value >= 0) label.Foreground = Brushes.Red; else label.Foreground = Brushes.Blue; };
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2