示例#1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="uri"></param>
 /// <returns>表示是否在应用内处理</returns>
 public static bool HandleUriLaunch(Uri uri)
 {
     if (uri is null)
     {
         return(true);
     }
     if (Available)
     {
         return(UriHandler.Handle(uri));
     }
     if (!UriHandler.CanHandleInApp(uri))
     {
         UriHandler.Handle(uri);
         return(false);
     }
     launchUri = uri;
     return(true);
 }
示例#2
0
        private static void Uri_Click(object sender, RoutedEventArgs e)
        {
            var uri = InAppNavigator.GetInAppUri((DependencyObject)sender);

            UriHandler.Handle(uri);
        }