コード例 #1
0
ファイル: ViewFactory.cs プロジェクト: usus/Usus.NET
		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
ファイル: ViewFactory.cs プロジェクト: maxbruecken/Usus.NET
        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);
        }