menu

Xamarin.Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class HyperlinkMessage - Xamarin.Forms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class HyperlinkMessage

    Represents a class which contains the functionalities for the hyperlink message in SfChat.

    Inheritance
    System.Object
    MessageBase
    TextMessage
    HyperlinkMessage
    Implements
    IHyperlinkMessage
    ITextMessage
    IMessage
    Inherited Members
    MessageBase.Author
    MessageBase.AuthorProperty
    MessageBase.Data
    MessageBase.DataProperty
    MessageBase.DateTime
    MessageBase.DateTimeProperty
    MessageBase.Dispose()
    MessageBase.HideAfterSelection
    MessageBase.HideAfterSelectionProperty
    MessageBase.IsMessageContentHiddenAfterSelection
    MessageBase.IsSuggestionViewHiddenAfterSelection
    MessageBase.Suggestions
    MessageBase.SuggestionsProperty
    TextMessage.Text
    TextMessage.TextProperty
    Namespace: Syncfusion.XForms.Chat
    Assembly: Syncfusion.SfChat.XForms.dll
    Syntax
    public class HyperlinkMessage : TextMessage, IHyperlinkMessage, ITextMessage, IMessage
    Examples

    The following code example demonstrates how to add hyperlink message in SfChat control.

    using Syncfusion.XForms.Chat;
    using Xamarin.Forms;
    

    namespace ChatDemo { public class SfChatDemo : ContentPage { SfChat sfChat;

        public SfChatDemo()
        {
            sfChat = new SfChat();
            HyperlinkMessage message = new HyperlinkMessage();
            message.Author = new Author() { Name = "Nancy", Avatar ="Nancy.png" };
            message.Link = "https://help.syncfusion.com/xamarin/introduction/overview";
            sfChat.Messages.Add(message);
    
            this.Content = sfChat;
        }
    }
    

    }

    <? xml version="1.0" encoding="utf-8" ?>
    <ContentPage xmlns = "http://xamarin.com/schemas/2014/forms"
                xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
                xmlns:d="http://xamarin.com/schemas/2014/forms/design"
                xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                xmlns:sfchat="clr-namespace:Syncfusion.XForms.Chat;assembly=Syncfusion.SfChat.XForms"
                xmlns:local="clr-namespace:Chat"
                mc:Ignorable="d"
                x:Class="Chat.SfChatDemo">
        <ContentPage.BindingContext>
           <local:ViewModel x:Name="viewModel"/>
        </ContentPage.BindingContext>
        <ContentPage.Content>
           <sfchat:SfChat x:Name="Sfchat">
                <sfchat:SfChat.Messages>
                    <sfchat:HyperlinkMessage
                         Link="https://help.syncfusion.com/xamarin/introduction/overview"
                         Author = "{Binding CurrentUser,Source={x:Reference viewModel}}">
                    </sfchat:HyperlinkMessage>
                </sfchat:SfChat.Messages>
            </sfchat:SfChat>
        </ContentPage.Content>
    </ContentPage>

    Constructors

    HyperlinkMessage()

    Declaration
    public HyperlinkMessage()

    Fields

    UrlProperty

    Identifies the Url Xamarin.Forms.BindableProperty.

    Declaration
    public static readonly BindableProperty UrlProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    Properties

    Url

    Gets or sets the URL to be loaded as a message.

    Declaration
    public string Url { get; set; }
    Property Value
    Type
    System.String

    Implements

    IHyperlinkMessage
    ITextMessage
    IMessage
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved