private LegendItem RaiseResolveLegendItem(LegendItem uncustomizedLegendItem) { if (ResolveLegendItem != null) { ResolveLegendItemEventArgs e = new ResolveLegendItemEventArgs(uncustomizedLegendItem); ResolveLegendItem(this, e); return(e.LegendItem); } else { return(uncustomizedLegendItem); } }
/// <summary> /// Adds new legend item. /// </summary> /// <param name="legendItem">The legend item.</param> public void AddLegendItem(LegendItem legendItem) { stackPanel.Children.Add(legendItem); }
private LegendItem CreateLegendItem() { LegendItem item = CreateLegendItemCore(); return(RaiseResolveLegendItem(item)); }
public ResolveLegendItemEventArgs(LegendItem legendItem) { LegendItem = legendItem; }