protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            var pushContext = new PushContext(ChannelName, ServiceName, AllowedDomains, Dispatcher);

            _viewTransitions.Transition();

            base.OnNavigatedTo(e);
        }
Beispiel #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;
        }