public static FrameworkElement CreateGraphs(ViewHub hub) { var graphsView = new View.Graphs(); var graphsViewModel = new ViewModels.Graphs.Graphs { Dispatchable = graphsView }; graphsViewModel.RegisterHub(hub); graphsView.DataContext = graphsViewModel; return graphsView; }
public static FrameworkElement CreateGraphs(ViewHub hub) { var graphsView = new View.Graphs(); var graphsViewModel = new ViewModels.Graphs.Graphs { Dispatchable = graphsView }; graphsViewModel.RegisterHub(hub); graphsView.DataContext = graphsViewModel; return(graphsView); }