public static double GetSize(BubbleControl control) { return (double) control.GetValue(SizeProperty); }
public static void SetSize(BubbleControl control, double value) { control.SetValue(SizeProperty, value); }
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; }