private void editor_ContentLinkInvoked(RichEditBox sender, ContentLinkInvokedEventArgs args)
 {
     if (args.ContentLinkInfo.LinkContentKind == "People")
     {
         args.Handled = true;
         //todo aprire l'applicazione preferita
     }
 }
Exemple #2
0
 void IContentLinkInvokedEventArgsResolver.Handled(ContentLinkInvokedEventArgs e, bool handled) => e.Handled = handled;
Exemple #3
0
 bool IContentLinkInvokedEventArgsResolver.Handled(ContentLinkInvokedEventArgs e) => e.Handled;
Exemple #4
0
 ContentLinkInfo IContentLinkInvokedEventArgsResolver.ContentLinkInfo(ContentLinkInvokedEventArgs e) => e.ContentLinkInfo;
Exemple #5
0
 /// <summary>Sets a value that marks the event as handled.
 /// </summary>
 /// <param name="e">The requested <see cref="ContentLinkInvokedEventArgs"/>.</param>
 /// <param name="handled"><c>true</c> to mark the event as handled; otherwise, <c>false</c>.</param>
 public static void Handled(this ContentLinkInvokedEventArgs e, bool handled) => Resolver.Handled(e, handled);
Exemple #6
0
 /// <summary>
 /// Gets a value that marks the event as handled.
 /// </summary>
 /// <param name="e">The requested <see cref="ContentLinkInvokedEventArgs"/>.</param>
 /// <returns><c>true</c> to mark the event as handled; otherwise, <c>false</c>.</returns>
 public static bool Handled(this ContentLinkInvokedEventArgs e) => Resolver.Handled(e);
Exemple #7
0
 /// <summary>
 /// Gets the ContentLinkInfo object that contains the data for the invoked link.
 /// </summary>
 /// <param name="e">The requested <see cref="ContentLinkInvokedEventArgs"/>.</param>
 /// <returns>The ContentLinkInfo object that contains the data for the invoked link.</returns>
 public static ContentLinkInfo ContentLinkInfo(this ContentLinkInvokedEventArgs e) => Resolver.ContentLinkInfo(e);
 private void ContentLinkInvoked(RichEditBox sender, ContentLinkInvokedEventArgs args)
 {
     ContextLinkNavigated?.Invoke(args.ContentLinkInfo.Uri);
     args.Handled = true;
 }