[]
Fires when annotation label was created.
public event AnnoCreatedEventHandler AnnoCreated
| Type | Description |
|---|---|
| AnnoCreatedEventHandler | Fires when annotation label was created. |
In the event handler it's possible to customize appearance of the label created by default.
The following code sets color of labels depending on its values.
chart.View.AxisY.AnnoCreated += (s, e) =>
{
var label = (TextBlock)e.Label;
if (e.Value >= 0)
label.Foreground = Brushes.Red;
else
label.Foreground = Brushes.Blue;
};