Click here to Skip to main content
15,394,707 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
The blink cursor can be seen in Word 2019 and 2010:

If you look closely, you'll see that the cursor in Word 2019 progressively fades and returns.
Also when you press the Enter key, the cursor advances slowly to the next line.

Word 2010:
Click to view the link
Word 2019:
Click to view the link

How do I use this Office 2019 style in the WPF text box?

For example:
Blinking cursor opacity in Word 2010:
Something like this:
duration=0.5
KeyTime 0=100 (opacity)
KeyTime 0.5=0 (opacity)


Blinking cursor opacity in Word 2019: (I want this style)
Something like this:
duration=1
KeyTime 0=100 (opacity)
KeyTime 0.2=80 (opacity)
KeyTime 0.4=60 (opacity)
KeyTime 0.6=40 (opacity)
KeyTime 0.8=20 (opacity)
KeyTime 1.0=0 (opacity)


I also want to move the blinking cursor slowly to the next line by pressing the Enter key.
Please show me the codes with the output (result).
Thanks

What I have tried:

I do not have specific information to try.
Posted
Updated 23-May-22 2:51am
v2

1 solution

   
Comments
Pete O'Hanlon 23-May-22 9:43am
   
This, as far as I'm concerned, is the correct answer.
Richard MacCutchan 23-May-22 10:04am
   
Purely based on OP's final sentence. :)
Reza jafery 23-May-22 14:56pm
   
It was not a complete solution, but thank you.
Richard MacCutchan 24-May-22 3:23am
   
I did not claim that it was. I gave you the link so you could understand what someone else had done and adapt it to your own requirements.
Reza jafery 25-May-22 16:54pm
   
OK thank you for your kindness.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900