Esempio n. 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="FrameFacadeAdapter"/> class.
        /// </summary>
        /// <param name="frame">The <see cref="Frame"/> that will be wrapped.</param>
        /// <param name="eventAggregator">The event aggregator to be used for publishing a <see cref="NavigationStateChangedEvent"/>. Can be null if events aren't needed.</param>
        public FrameFacadeAdapter(Frame frame, IEventAggregator eventAggregator = null)
        {
            if (eventAggregator != null)
            {
                _navigationStateChangedEvent = eventAggregator.GetEvent <NavigationStateChangedEvent>();
            }

            _frame = frame;
        }
Esempio n. 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="FrameFacadeAdapter"/> class.
        /// </summary>
        /// <param name="frame">The <see cref="Frame"/> that will be wrapped.</param>
        /// <param name="eventAggregator">The event aggregator to be used for publishing a <see cref="NavigationStateChangedEvent"/>. Can be null if events aren't needed.</param>
        public FrameFacadeAdapter(Frame frame, IEventAggregator eventAggregator = null)
        {
            if (eventAggregator != null)
            {
                _navigationStateChangedEvent = eventAggregator.GetEvent<NavigationStateChangedEvent>();
            }

            _frame = frame;
        }