RadRichtextbox Watermark set position to center document

2 Answers 269 Views
RichTextBox
Kamran
Top achievements
Rank 3
Iron
Iron
Veteran
Kamran asked on 14 Aug 2021, 10:45 AM

Hi,

I am inserting watermark text in RadRichtextbox. Default behavior does not place watermark text in center of document. 

1. I want to place watermark text in center document and 45* rotation

2. In some situation, watermark is hidden by content. For example Picture, or any content that I insert in document hides watermark text. Is there anyway to keep watermark in front all the time.

Following my code to insert watermark, and attached behavior actual and what is expected.

 


WatermarkTextSettings textSettings = new WatermarkTextSettings();
 textSettings.Text =
@$"USER FULL NAME HERE
Designation Details
Current Organization
{DateTime.Now:MMMM dd\,yyyy HH:mm}";

            textSettings.RotateAngle = -45;
            textSettings.Opacity = .5;
            textSettings.ForegroundColor = Colors.Gray;
            textSettings.FontSize = 48;
            textSettings.FontFamily = new FontFamily("Bahnschrift");
           
            this.editor.SetWatermarkText(textSettings);

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimitar
Telerik team
answered on 16 Aug 2021, 10:21 AM

Hello Kamran,

I was able to reproduce the observed issue. I have logged it on your behalf on our feedback portal. You can track its progress, subscribe to status changes, and add your comment to it here. I have updated your Telerik points as well. 

Unfortunately, I cannot suggest a workaround for the issue. We will do our best to fix this in one of the next internal builds.

Thank you for your understanding.

Regards,
Dimitar
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.

0
Kamran
Top achievements
Rank 3
Iron
Iron
Veteran
answered on 01 Oct 2021, 07:04 PM
Issue is fixed in 

UI for WPF R3 2021

Tags
RichTextBox
Asked by
Kamran
Top achievements
Rank 3
Iron
Iron
Veteran
Answers by
Dimitar
Telerik team
Kamran
Top achievements
Rank 3
Iron
Iron
Veteran
Share this question
or