Example #1
0
        /// <summary>
        /// Calls the <see cref="IViewModelEvent{TPayload}.Raise"/> for an event
        /// </summary>
        protected virtual void RaiseEvent <TEvent, TArgs>(TArgs args)
            where TEvent : class, IViewModelEvent <TArgs>, new()
        {
            var targetEvent = _eventDispatcher.GetEvent <TEvent>();

            targetEvent.Raise(this, args);
        }