public static FrameworkElement CreateDistributions(ViewHub hub) { var distributionsView = new View.Distributions(); var distributionsViewModel = new ViewModels.Distributions.Distributions { Dispatchable = distributionsView }; distributionsViewModel.RegisterHub(hub); distributionsView.DataContext = distributionsViewModel; return distributionsView; }
public static FrameworkElement CreateDistributions(ViewHub hub) { var distributionsView = new View.Distributions(); var distributionsViewModel = new ViewModels.Distributions.Distributions { Dispatchable = distributionsView }; distributionsViewModel.RegisterHub(hub); distributionsView.DataContext = distributionsViewModel; return(distributionsView); }