/// <summary>
 /// Initializes a new instance of the SeriesDefinition class.
 /// </summary>
 public SeriesDefinition()
 {
     _legendItem = new LegendItem { Owner = this };
     _legendItem.SetBinding(LegendItem.ContentProperty, new Binding(){Path=new PropertyPath("ActualTitle") , Source = this });
     _legendItem.SetBinding(LegendItem.StyleProperty, new Binding(){Path=new PropertyPath("ActualLegendItemStyle") , Source = this });
     _legendItems.Add(_legendItem);
 }
 /// <summary>
 /// Creates a legend item.
 /// </summary>
 /// <returns>A legend item for insertion in the legend items collection.
 /// </returns>
 /// <param name="owner">The owner of the new LegendItem.</param>
 protected virtual LegendItem CreateLegendItem(DataPointSeries owner)
 {
     LegendItem legendItem = new LegendItem() { Owner = owner };
     legendItem.SetBinding(LegendItem.StyleProperty, new Binding(){Path=new PropertyPath(ActualLegendItemStyleName) , Source = this });
     legendItem.SetBinding(LegendItem.ContentProperty, new Binding(){Path=new PropertyPath(TitleName) , Source = this });
     return legendItem;
 }