예제 #1
0
        public UserControl CreateViewFromViewModel(ITopBannerModuleViewModel viewModel)
        {
            var topBannerView = new TopBannerView();

            topBannerView.DataContext = viewModel;
            return(topBannerView);
        }
예제 #2
0
        public UserControl CreateView(object obj)
        {
            var topBannerView = new TopBannerView();

            topBannerView.DataContext = new TopBannerViewModel();
            return(topBannerView);
        }