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