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

            return(RaiseResolveLegendItem(item));
        }
Beispiel #4
0
 public ResolveLegendItemEventArgs(LegendItem legendItem)
 {
     LegendItem = legendItem;
 }