In Development
Last Updated: 27 May 2026 10:48 by ADMIN
Infra
Created on: 08 Jan 2026 12:30
Category: RichTextEditor
Type: Bug Report
1
RichTextEditor: [WinUI] Background color does not apply when changing the theme from the Windows settings
when changing the device theme from settings -> personalization -> theme to dark, the Editor background color changes to black and text color changes to black, no matter which Telerik theme is set.
4 comments
ADMIN
Stenly
Posted on: 27 May 2026 10:48

Hello,

Thank you for your reply.

We are currently working on a fix regarding the reported behavior.

Although I cannot provide a set timeframe, in which the fix will be officially available, what I could suggest would be to follow this bug report, in order to receive email notifications when its status changes.

In the meantime, would it be possible to give the following approach a try and see if the reported behavior is resolved on your end?

public partial class MainPage : ContentPage
{
    public MainPage()
    {
        InitializeComponent();

        this.richTextEditor.Loaded += OnRichTextEditorLoaded;
    }

    private void OnRichTextEditorLoaded(object sender, EventArgs e)
    {
#if WINDOWS
        var editor = (RadRichTextEditor)sender;

        var webView = FindDescendant<WebView>(editor);
        if (webView == null) return;

        if (webView.Handler?.PlatformView is WebView2 webView2)
        {
            webView2.CoreWebView2Initialized += OnCoreWebView2Initialized;
        }
        else
        {
            webView.HandlerChanged += (s, _) =>
            {
                if (((WebView)s).Handler?.PlatformView is WebView2 wv2)
                {
                    wv2.CoreWebView2Initialized += OnCoreWebView2Initialized;
                }
            };
        }
#endif
    }

#if WINDOWS
    private void OnCoreWebView2Initialized(WebView2 sender, Microsoft.UI.Xaml.Controls.CoreWebView2InitializedEventArgs args)
    {
        var webView2Profile = sender?.CoreWebView2?.Profile;
        if (webView2Profile != null)
        {
            webView2Profile.PreferredColorScheme = Microsoft.Web.WebView2.Core.CoreWebView2PreferredColorScheme.Light;
        }
    }

    private static T? FindDescendant<T>(IVisualTreeElement parent) where T : class
    {
        foreach (var child in parent.GetVisualChildren())
        {
            if (child is T match) return match;
            var result = FindDescendant<T>(child);
            if (result != null) return result;
        }
        return null;
    }
#endif
}

With this being said, if any additional assistance regarding this case is required, please let me know.

Regards,
Stenly
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Infra
Posted on: 27 May 2026 09:13
Hi Didi,

Thank you for your response.

I would like to emphasize that we are relying on the HTML Editor component for an active customer project. The current bug is blocking our progress, and we need to make a decision on how to proceed, either waiting for a fix or finding an alternative solution.

To make that decision, we would need at minimum:
- Confirmation that a fix is actively being worked on
- A rough estimate of which release it might be included in

We would appreciate any update you are able to provide.

Best regards
ADMIN
Didi
Posted on: 13 May 2026 07:00

Hi,

I am afraid, I cannot commit a time-frame when a fix will be provided. I can assure you the issue is escalated to the dev team.

Regards,
Didi
Progress Telerik

Infra
Posted on: 12 May 2026 08:33
Is there a timetable in place for resolving this issue?