public UserControl CreateViewFromViewModel(ITopBannerModuleViewModel viewModel) { var topBannerView = new TopBannerView(); topBannerView.DataContext = viewModel; return(topBannerView); }
public UserControl CreateView(object obj) { var topBannerView = new TopBannerView(); topBannerView.DataContext = new TopBannerViewModel(); return(topBannerView); }