Exemplo n.º 1
0
 public static double GetSize(BubbleControl control)
 {
     return (double) control.GetValue(SizeProperty);
 }
Exemplo n.º 2
0
 public static void SetSize(BubbleControl control, double value)
 {
     control.SetValue(SizeProperty, value);
 }
Exemplo n.º 3
0
 private BubbleControl GetBubble(object bubbleSource)
 {
     BubbleControl bubble = _bubbles.FirstOrDefault(b => b.DataContext == bubbleSource);
     if (bubble == null)
     {
         bubble = new BubbleControl {DataContext = bubbleSource};
         bubble.SetBinding(BubbleControl.LegendValueProperty, new Binding {Path = new PropertyPath(LegendMember)});
         bubble.SetBinding(BubbleControl.XValueProperty, new Binding {Path = new PropertyPath(XMember)});
         bubble.SetBinding(BubbleControl.YValueProperty, new Binding {Path = new PropertyPath(YMember)});
         bubble.SetBinding(BubbleControl.RadiusProperty, new Binding {Path = new PropertyPath(RadiusMember)});
     }
     return bubble;
 }