Exemplo n.º 1
0
		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;
		}
Exemplo n.º 2
0
        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);
        }