示例#1
0
 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;
 }
示例#2
0
        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);
        }