Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

StreamHtmlSource Class

An HtmlEdit‘s data source that loads HTML text from Stream.

Namespace: DevExpress.Maui.HtmlEditor

Assembly: DevExpress.Maui.HtmlEditor.dll

NuGet Package: DevExpress.Maui.HtmlEditor

#Declaration

C#
public class StreamHtmlSource :
    HtmlSource

#Remarks

The following code snippet creates a new StreamHtmlSource and specifies its Stream property. Then, it specifies the HtmlSource property to display HTML markup from a Stream with the mail.html content:

<ContentPage ...
             xmlns:dxhtml="clr-namespace:DevExpress.Maui.HtmlEditor;assembly=DevExpress.Maui.HtmlEditor"
             xmlns:dx="clr-namespace:DevExpress.Maui.Core;assembly=DevExpress.Maui.Core">
    <dx:SafeKeyboardAreaView>
        <dxhtml:HtmlEdit x:Name="htmledit"/>
    </dx:SafeKeyboardAreaView>
</ContentPage>
public partial class MainPage : ContentPage {
    public MainPage() {
        InitializeComponent();
        StreamHtmlSource htmlsource = new StreamHtmlSource();
        htmlsource.Stream = _ => FileSystem.Current.OpenAppPackageFileAsync("mail.html");
        htmledit.HtmlSource = htmlsource;
    }
}

#Inheritance

System.Object
BindableObject
Element
DevExpress.Maui.Core.Internal.DXElementBaseCore
HtmlSource
StreamHtmlSource
See Also