var vm = new ViewModel<float>(cost); var app = new Application(); app.Run(new GraphControl {DataContext = vm});
var vm = new ViewModel(cost);
var app = new Application();
app.Run(new GraphControl {DataContext = vm});