Ejemplo n.º 1
0
 public void OnNavigatedFrom(Microsoft.Practices.Prism.Regions.NavigationContext navigationContext)
 {
     EventAggregator.GetEvent <MediaSelectionEvent>().Unsubscribe(mediaSelectionEvent);
     MediaCollectionView.ItemPropertyChanged   -= MediaCollectionView_ItemPropertyChanged;
     MediaCollectionView.NrItemsInStateChanged -= MediaCollectionView_NrItemsInStateChanged;
     mapClearItems();
 }
Ejemplo n.º 2
0
 public void OnNavigatedTo(Microsoft.Practices.Prism.Regions.NavigationContext navigationContext)
 {
     mapLoadItems();
     EventAggregator.GetEvent <MediaSelectionEvent>().Subscribe(mediaSelectionEvent, ThreadOption.PublisherThread, false, selection => selection.SenderId.Equals(MediaCollectionView.Guid));
     MediaCollectionView.ItemPropertyChanged   += MediaCollectionView_ItemPropertyChanged;
     MediaCollectionView.NrItemsInStateChanged += MediaCollectionView_NrItemsInStateChanged;
 }
Ejemplo n.º 3
0
        public override void OnNavigatedTo(Microsoft.Practices.Prism.Regions.NavigationContext navigationContext)
        {
            //LoadSoportes();
            //LoadAmbitos();
            //LoadGrupoProductoes();

            base.OnNavigatedTo(navigationContext);
        }
Ejemplo n.º 4
0
        public void OnNavigatedTo(Microsoft.Practices.Prism.Regions.NavigationContext navigationContext)
        {
            MediaItem item = (MediaItem)navigationContext.Parameters["item"];

            CurrentItem = item;

            EventAggregator.GetEvent <TitleChangedEvent>().Publish(CurrentItem != null ? CurrentItem.Name : null);

            EventAggregator.GetEvent <MediaSelectionEvent>().Subscribe(imageView_MediaSelectionEvent, ThreadOption.UIThread);
        }
Ejemplo n.º 5
0
        public override void OnNavigatedTo(Microsoft.Practices.Prism.Regions.NavigationContext navigationContext)
        {
            string id = navigationContext.Parameters["Id"];
            if (string.IsNullOrWhiteSpace(id) || id == "0")
            {
                return;
            }

            this.ObjectElement = GetById(int.Parse(id));

            this.Rebind();
        }
Ejemplo n.º 6
0
        /// <summary>
        /// .en Navigate method to go to view a record with his id.
        /// </summary>
        /// <param name="navigationContext">.en Id of the record to go to.</param>
        public override void OnNavigatedTo(Microsoft.Practices.Prism.Regions.NavigationContext navigationContext)
        {
            string id = navigationContext.Parameters["Id"];
            if (string.IsNullOrWhiteSpace(id) || id == default(TIdentifier).ToString())
            {
                return;
            }

            TIdentifier tid = GenericConverters.ChangeType<TIdentifier>(id);
            this.ObjectElement = GetById(tid);

            this.Rebind();
        }
Ejemplo n.º 7
0
 public void OnNavigatedFrom(Microsoft.Practices.Prism.Regions.NavigationContext navigationContext)
 {
     EventAggregator.GetEvent <MediaSelectionEvent>().Unsubscribe(imageView_MediaSelectionEvent);
 }
Ejemplo n.º 8
0
        public override void OnNavigatedTo(Microsoft.Practices.Prism.Regions.NavigationContext navigationContext)
        {
            //es aqui donde se invoca a los metodos de carga de las entidades adicionales.

            base.OnNavigatedTo(navigationContext);
        }