Ejemplo n.º 1
0
        protected TEventType GetRegionEvent <TEventType>(ViewModelRegion viewModelRegion = null) where TEventType : RegionPubSubEvent, new()
        {
            if (viewModelRegion != null)
            {
                return(GetRegionEvent <TEventType>(new List <ViewModelRegion> {
                    viewModelRegion
                }));
            }

            var regionEvent = EventAggregator.GetEvent <TEventType>();

            regionEvent.Sender         = this;
            regionEvent.PublishRegions = PublishRegions;
            return(regionEvent);
            //return EventAggregator.GetEvent<T>();
        }
Ejemplo n.º 2
0
 static ViewModelRegion()
 {
     GlobalRegion = new ViewModelRegion();
 }
Ejemplo n.º 3
0
 public ViewModelWire(ViewModelBase parent)
 {
     ChildViewModelRegion = new ViewModelRegion();
 }