Beispiel #1
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            var args = e.Parameter as ProtocolActivatedEventArgs;

            if (args != null)
            {
                var w = new WwwFormUrlDecoder(args.Uri.Query);

                if (w.Count == 1 && w[0].Name == "value")
                {
                    var path = (args.Uri.AbsoluteUri.StartsWith("nativeshare://")) ? args.Uri.Host : args.Uri.AbsolutePath;
                    data     = w[0].Value;
                    dataType = ShareManager.UriToDataType(path);

                    shareManager.Share(data, dataType);
                }

                help.Visibility        = Visibility.Collapsed;
                shareFinish.Visibility = Visibility.Visible;
            }
        }