Exemplo n.º 1
0
		public static FrameworkElement CreateTypeCycles(ViewHub hub)
		{
			var typeCyclesView = new View.TypeCycles();
			var typeCyclesViewModel = new ViewModels.TypeCycles.TypeCycles { Dispatchable = typeCyclesView };
			typeCyclesViewModel.RegisterHub(hub);
			typeCyclesView.DataContext = typeCyclesViewModel;
			return typeCyclesView;
		}
Exemplo n.º 2
0
        public static FrameworkElement CreateTypeCycles(ViewHub hub)
        {
            var typeCyclesView      = new View.TypeCycles();
            var typeCyclesViewModel = new ViewModels.TypeCycles.TypeCycles {
                Dispatchable = typeCyclesView
            };

            typeCyclesViewModel.RegisterHub(hub);
            typeCyclesView.DataContext = typeCyclesViewModel;
            return(typeCyclesView);
        }