Пример #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;
		}
Пример #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);
        }