protected override void OnNavigatedTo(NavigationEventArgs e) { var pushContext = new PushContext(ChannelName, ServiceName, AllowedDomains, Dispatcher); _viewTransitions.Transition(); base.OnNavigatedTo(e); }
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; }