Пример #1
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            var pushContext = new PushContext(ChannelName, ServiceName, AllowedDomains, Dispatcher);

            _viewTransitions.Transition();

            base.OnNavigatedTo(e);
        }
Пример #2
0
        public PushContext(string channelName, string serviceName, IList <Uri> allowedDomains, Dispatcher dispatcher)
        {
            if (_current != null)
            {
                throw new InvalidOperationException("There should be no more than one push context.");
            }

            ChannelName    = channelName;
            ServiceName    = serviceName;
            AllowedDomains = allowedDomains;
            Dispatcher     = dispatcher;

            _current = this;
        }