public Graph(StockChartPresentation parentChart) { ParentChart = parentChart; Plots = new ObservableCollection <Plot>(); Trades = new ObservableCollection <TradeRecord>(); InitializeComponent(); this.DataContext = this; Loaded += delegate { RedrawNeeded(); }; SizeChanged += delegate { RedrawNeeded(); }; Plots.CollectionChanged += delegate { RedrawNeeded(); }; }
public StockChart() { InitializeComponent(); Presentation = new StockChartPresentation(this); this.DataContext = Presentation; }