private void editor_ContentLinkInvoked(RichEditBox sender, ContentLinkInvokedEventArgs args) { if (args.ContentLinkInfo.LinkContentKind == "People") { args.Handled = true; //todo aprire l'applicazione preferita } }
void IContentLinkInvokedEventArgsResolver.Handled(ContentLinkInvokedEventArgs e, bool handled) => e.Handled = handled;
bool IContentLinkInvokedEventArgsResolver.Handled(ContentLinkInvokedEventArgs e) => e.Handled;
ContentLinkInfo IContentLinkInvokedEventArgsResolver.ContentLinkInfo(ContentLinkInvokedEventArgs e) => e.ContentLinkInfo;
/// <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);
/// <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);
/// <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; }