5 Answers, 1 is accepted
Hello Larry,
TextColor property refers to the text that is currently selected or under the caret, meaning that this is formatting option of the text inside the editor. So, if you already have loaded text, make sure it has the proper text color applied, for example through "<p style='color:#ffffff'>" tag.
Other than that, in case the editor is empty and you'd need to use white text color by default, you can subscribe to Focused event of the RichTextEditor and set the TextColor inside the handler:
private void richTextEditor_Focused(object sender, FocusEventArgs e)
{
this.richTextEditor.TextColor = Color.White;
}
I hope I was of help. Let me know if any additional questions pop up.
Regards,
Yana
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.
Hello Larry,
Could you elaborate a little bit more on how you've tested it - on Android or iOS, on device or simulator? I am asking as the snippet works properly on my side and it seems I am missing something here.
Regards,
Yana
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.
To say I can't explain what was going on is a gross understatement. After a zillion debugging hours, restarts, reboots, etc., it simply "starting working fine."
For future reference, note that the focused (and unfocused) events don't appear to fire. Try setting a breakpoint on the event handler code.
So, I'm (frazzled but) good.
Thanks.
Hi Larry,
First, I am glad to hear you've managed to resolve it.
I guess the Xamarin.Forms project wasn't rebuilt with the latest changes (adding the event). If something similar happens again, you can try to delete bin and obj folders, and rebuilt explicitly the Xamarin project.
Regards,
Yana
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.