Exemplo n.º 1
0
        public YoutubeView(IRegionManager regionManager, IEventAggregator eventAggregator)
        {
            InitializeComponent();
            RegionManager   = regionManager;
            EventAggregator = eventAggregator;

            this.SetValue(Microsoft.Practices.Prism.Regions.RegionManager.RegionManagerProperty, RegionManager);

            DataContext = ViewModel = new YoutubeViewModel(regionManager, eventAggregator);
        }
Exemplo n.º 2
0
        public YoutubeView(IRegionManager regionManager, IEventAggregator eventAggregator)
        {
            InitializeComponent();
            RegionManager = regionManager;
            EventAggregator = eventAggregator;

            this.SetValue(Microsoft.Practices.Prism.Regions.RegionManager.RegionManagerProperty, RegionManager);

            DataContext = ViewModel = new YoutubeViewModel(regionManager,eventAggregator);                      
        }